Returns the current language of the checkout, and automatically re-renders your component if the language changes.
Returns the current language of the checkout, and automatically re-renders your component if the language changes.
export function useLanguage< ID extends RenderExtensionPoint = RenderExtensionPoint, >(): Language { const {localization} = useApi<ID>(); return useSubscription(localization.language); }
The BCP-47 language tag. It may contain a dash followed by an ISO 3166-1 alpha-2 region code.