Comments (4)
it will only work if the translations have been preloaded (all required namespaces)....
alternatively have a look at: https://www.i18next.com/how-to/caching
or: https://www.i18next.com/how-to/backend-fallback
from i18next.
it will only work if the translations have been preloaded (all required namespaces).... alternatively have a look at: https://www.i18next.com/how-to/caching or: https://www.i18next.com/how-to/backend-fallback
Thank you for the response. In my case I don't have any namespaces, there is only one json "file" which obviously has been loaded before any connection issues... I thought it should work offline. Regarding the cache - it is not an option for me, as the application is supposed to have an updates quite often.
from i18next.
If the translations are loaded there should be no additional request and the translations should work...
If that's not the case, please provide a minimal reproducible example.
from i18next.
Was unable to respond earlier.
My bad, the issue was in
import { t } from 'i18next';
I didn't notice missing useTranslation hook.
Thank you for your patience)
from i18next.
Related Issues (20)
- One and Other plurals do not seem to be working correctly HOT 1
- refactor: dedupe content between t.d.ts and t.v4.d.ts HOT 4
- Interpolation of multiple datetimes doesn't respect the format params HOT 2
- Support pluralization rules for constructed languages (conlangs) HOT 2
- Correct usage of returnObjects with TypeScript is not documented HOT 4
- t.v4.d.ts:189:47 - error TS1005: '?' expected HOT 4
- skipOnVariable not working for non key input in `t` HOT 3
- 23.7.13 -> 23.7.14 Regression with 'Type instantiation is excessively deep and possibly infinite' HOT 3
- ASCII Decoding HOT 1
- Correct way to use i18n.t() inside index.ts files in React + TypeScript application HOT 2
- RangeError: Maximum call stack size exceeded at deepExtend HOT 2
- i18next::backendConnector: TypeError: Failed to parse URL HOT 1
- Get the wrong API call HOT 3
- React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. HOT 3
- getFixedExists should support function getFixedT HOT 1
- Error: You are passing a wrong module! Please check the object you are passing to i18next.use() HOT 1
- The βconstβ keyword is extraneous in the ParseKeys type definition. HOT 2
- Not existing context not detected as type error if covered by string union HOT 8
- Allow default value in nested translation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18next.