spestexnika
This commit is contained in:
22
i18n/index.ts
Normal file
22
i18n/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
resources: {
|
||||
uz: {
|
||||
common: require("../public/locales/uz/common.json"),
|
||||
},
|
||||
ru: {
|
||||
common: require("../public/locales/ru/common.json"),
|
||||
},
|
||||
},
|
||||
lng: "uz",
|
||||
fallbackLng: "uz",
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
1
i18n/settings.ts
Normal file
1
i18n/settings.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const languages = ["uz", "ru"] as const;
|
||||
Reference in New Issue
Block a user