(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
1import i18n from "i18next";
2import { initReactI18next } from "react-i18next";
3import LanguageDetector from "i18next-browser-languagedetector";
4import { resources } from "virtual:i18n-resources";
5
6i18n
7 .use(LanguageDetector)
8 .use(initReactI18next)
9 .init({
10 fallbackLng: "en",
11 resources,
12 ns: ["translation"],
13 defaultNS: "translation",
14 detection: {
15 order: ["localStorage", "navigator", "htmlTag"],
16 caches: ["localStorage"],
17 },
18 interpolation: {
19 escapeValue: false,
20 },
21 });
22
23export default i18n;