Skip to content
On this page

useInternationalization

Definition

Composable for internationalization management.

Basic usage

ts
const {  getStorefrontUrl } = useInternationalization();

Signature

ts
export function useInternationalization(): UseInternationalizationReturn 

Return type

See UseInternationalizationReturn
ts
export type UseInternationalizationReturn = {
  /**
   * StorefrontUrl is needed to specify language of emails
   */
  getStorefrontUrl(): string;
};

Methods

NameTypeDescription
getStorefrontUrl
string
StorefrontUrl is needed to specify language of emails
useInternationalization has loaded