diff options
Diffstat (limited to 'apps/web/lib/i18n/settings.ts')
| -rw-r--r-- | apps/web/lib/i18n/settings.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/web/lib/i18n/settings.ts b/apps/web/lib/i18n/settings.ts new file mode 100644 index 00000000..5787a55e --- /dev/null +++ b/apps/web/lib/i18n/settings.ts @@ -0,0 +1,17 @@ +import { supportedLangs } from "@hoarder/shared/langs"; + +export const fallbackLng = "en"; +export const languages = supportedLangs; +export const defaultNS = "translation"; +export const cookieName = "i18next"; + +export function getOptions(lng: string = fallbackLng, ns: string = defaultNS) { + return { + supportedLngs: languages, + fallbackLng, + lng, + fallbackNS: defaultNS, + defaultNS, + ns, + }; +} |
