aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/lib/i18n/settings.ts
blob: 422941c66cd125290a5840ab1c53e65fc09f3d71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { supportedLangs } from "@karakeep/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,
  };
}