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< Target extends RenderExtensionTarget = RenderExtensionTarget, >(): Language { const {localization} = useApi<Target>(); return useSubscription(localization.language); }
The BCP-47 language tag. It may contain a dash followed by an ISO 3166-1 alpha-2 region code.