Retrospring/app/javascript/retrospring/i18n.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
274 B
TypeScript
Raw Normal View History

import Cookies from 'js-cookie'
import { I18n } from "i18n-js"
import translations from "./i18n.json";
const i18n = new I18n();
i18n.store(translations);
i18n.defaultLocale = "en";
i18n.enableFallback = true;
i18n.locale = Cookies.get('hl') || 'en';
export default i18n;