aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/lib/i18n/settings.ts
blob: 5787a55e3a8a4c05dd3b11eae6e6eb10547761e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,
  };
}