Latest decky changed merged into i18n and updated translation.

This commit is contained in:
Marco Rodolfi
2023-01-23 13:22:34 +01:00
parent 59409eb59f
commit 0f0b47beed
73 changed files with 695 additions and 73012 deletions
+2 -16
View File
@@ -1,26 +1,12 @@
import i18next from 'i18next';
import Backend from 'i18next-fs-backend';
import Backend from 'i18next-http-backend';
import { initReactI18next } from 'react-i18next';
i18next
.use(initReactI18next)
.use(Backend)
.use(initReactI18next)
.init({
debug: true,
backend: {
// path where resources get loaded from, or a function
// returning a path:
// function(lngs, namespaces) { return customPath; }
// the returned path will interpolate lng, ns if provided like giving a static path
loadPath: '/home/deck/homebrew/locales/{{lng}}/{{ns}}.json',
// path to post missing resources
// addPath: '/locales/{{lng}}/{{ns}}.missing.json',
// if you use i18next-fs-backend as caching layer in combination with i18next-chained-backend, you can optionally set an expiration time
// an example on how to use it as cache layer can be found here: https://github.com/i18next/i18next-fs-backend/blob/master/example/caching/app.js
// expirationTime: 60 * 60 * 1000
},
fallbackLng: 'en',
fallbackNS: 'Common',
lng: 'en',