You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating packages I cannot get rid of typescipt errors. I copied the example from the docs.
If I remove the <ChainedBackendOptions> then it says 'backends' does not exist in type 'LocizeBackendOptions'.
importi18nextfrom'i18next';import{initReactI18next}from'react-i18next';importChainedBackend,{ChainedBackendOptions}from'i18next-chained-backend';importLocizeBackendfrom'i18next-locize-backend';importHTTPBackendLocalfrom'i18next-http-backend';importposfrom'pos.json';exportconstdefaultNS='pos';exportconstresources={en: {
pos
}}asconst;i18next.use(initReactI18next).use(ChainedBackend).init(<ChainedBackendOptions>{backend: {backends: [LocizeBackend,// primaryHTTPBackendLocal// fallback],backendOptions: [{projectId: 'myLocizeProjectId'},{loadPath: '/locales/{{lng}}/{{ns}}.json'// http api load path for my own fallback}]},fallbackLng: 'en',fallbackNS: 'pos',defaultNS: 'pos',ns: ['pos'],interpolation: {escapeValue: false}});
export default i18next;
runtime version: i.e. node v14.20, chrome
os: windows
"i18next": "^22.4.6",
"i18next-chained-backend": "^4.2.0",
"i18next-http-backend": "^2.1.1",
"i18next-locize-backend": "^6.0.0",
The text was updated successfully, but these errors were encountered:
After updating packages I cannot get rid of typescipt errors. I copied the example from the docs.
If I remove the
<ChainedBackendOptions>
then it says 'backends' does not exist in type 'LocizeBackendOptions'."i18next": "^22.4.6",
"i18next-chained-backend": "^4.2.0",
"i18next-http-backend": "^2.1.1",
"i18next-locize-backend": "^6.0.0",
The text was updated successfully, but these errors were encountered: