export type Locale = { code: string; label: string; isRTL: boolean; MUI: string; }; export type UseLocaleResponse = { /** * All locales/languages available for the User's Market */ locales: Locale[]; /** * Current selected locale/language. Ex.: { ...code: "en"} */ currentLocale: Locale; /** * Use this funciton to change UI and API calls to a different language */ changeLocale: (locale: string) => void; }; export type UseLocaleHook = () => UseLocaleResponse;