Comments (3)
Like said... you need the as const or an interface: https://www.i18next.com/overview/typescript#not-working-interpolation-values
from i18next.
I don't think this was working before v23.11.3... That may be since v22.x
That's probably because of the number... like it is with the interpolation: https://www.i18next.com/overview/typescript#not-working-interpolation-values
from i18next.
And also type issue that if i use snake_case
in json the generate new field as snakease
{
"403": "403 Forbidden \n You don’t have permission to access this page.",
"500": "Looks like the server is taking too long to respond, this can be caused by either poor connectivity or an error with our servers. Please try again in a while.",
"503": "Service temporarily unavailable.",
"error_code": "error"
}
i18next.init({
lng: "en",
debug: true,
ns,
defaultNS,
resources,
});
from i18next.
Related Issues (20)
- 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
- Autocompletion doesn't work on large files in webstorm HOT 1
- Don't get the correct types if the key contains _ HOT 2
- Unsupported language is automatically added to preload option HOT 14
- Better API for plurals, for better extraction HOT 3
- Typescript: error when using multiple fallback key and at least one key is valid HOT 2
- Component based localization HOT 4
- Multiple namespaces not working after upgrading to version 21 HOT 6
- v23.11.5 breaks the useTranslation() hook with name-spaced translation files HOT 12
- Wrapping-up on ts performance issue: the culprit is `ParseKeysByNamespaces` HOT 4
- Ordinals in non-english languages 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.