mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-12 05:41:55 +00:00
Added correct url path of the loopback server.
This commit is contained in:
@@ -6,7 +6,7 @@ i18next
|
|||||||
.use(Backend)
|
.use(Backend)
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
.init({
|
.init({
|
||||||
backend:{
|
backend: {
|
||||||
// path where resources get loaded from, or a function
|
// path where resources get loaded from, or a function
|
||||||
// returning a path:
|
// returning a path:
|
||||||
// function(lngs, namespaces) { return customPath; }
|
// function(lngs, namespaces) { return customPath; }
|
||||||
@@ -17,7 +17,7 @@ i18next
|
|||||||
// If allowMultiLoading is false, lngs and namespaces will have only one element each,
|
// If allowMultiLoading is false, lngs and namespaces will have only one element each,
|
||||||
// If allowMultiLoading is true, lngs and namespaces can have multiple elements
|
// If allowMultiLoading is true, lngs and namespaces can have multiple elements
|
||||||
loadPath: 'https://steamloopback.host:1337/locales/{{lng}}/{{ns}}.json',
|
loadPath: 'https://steamloopback.host:1337/locales/{{lng}}/{{ns}}.json',
|
||||||
|
|
||||||
// your backend server supports multiloading
|
// your backend server supports multiloading
|
||||||
// /locales/resources.json?lng=de+en&ns=ns1+ns2
|
// /locales/resources.json?lng=de+en&ns=ns1+ns2
|
||||||
// Adapter is needed to enable MultiLoading https://github.com/i18next/i18next-multiload-backend-adapter
|
// Adapter is needed to enable MultiLoading https://github.com/i18next/i18next-multiload-backend-adapter
|
||||||
@@ -31,7 +31,7 @@ i18next
|
|||||||
// }
|
// }
|
||||||
allowMultiLoading: false, // set loadPath: '/locales/resources.json?lng={{lng}}&ns={{ns}}' to adapt to multiLoading
|
allowMultiLoading: false, // set loadPath: '/locales/resources.json?lng={{lng}}&ns={{ns}}' to adapt to multiLoading
|
||||||
|
|
||||||
reloadInterval: false // can be used to reload resources in a specific interval (useful in server environments)
|
reloadInterval: false, // can be used to reload resources in a specific interval (useful in server environments)
|
||||||
},
|
},
|
||||||
debug: true,
|
debug: true,
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
@@ -40,7 +40,7 @@ i18next
|
|||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
},
|
},
|
||||||
load: 'languageOnly'
|
load: 'languageOnly',
|
||||||
});
|
});
|
||||||
|
|
||||||
export default i18next;
|
export default i18next;
|
||||||
|
|||||||
Reference in New Issue
Block a user