first commit
This commit is contained in:
10
calcom/packages/lib/i18n.ts
Normal file
10
calcom/packages/lib/i18n.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const { i18n } = require("@calcom/config/next-i18next.config");
|
||||
|
||||
// Workaround for using router.locales from old router
|
||||
export const locales = i18n.locales as string[];
|
||||
|
||||
export const localeOptions = locales.map((locale) => ({
|
||||
value: locale,
|
||||
label: new Intl.DisplayNames(locale, { type: "language" }).of(locale) || "",
|
||||
}));
|
||||
Reference in New Issue
Block a user