Comments (5)
It seems that I miss understood this feature. i18next does not seem to send missing keys if they are found from the fallback language.
But I think this feature would be more useful if it would just ignore the fallback language and always send the missing keys to the current language file. So think this as a feature request.
from i18next.
Right. i18next tries to resolve key first in 'en-US' than in 'en' and finally in the defined fallback language.
Problem i see: What is the current language file, eg. 'en-US' or 'en'.
As i used this only during development i was happy to see all the resource keys needed in my fallback languages file. But i see the use of sending it to current language for checking after translations are done, before going into production.
Think best would be to have it configurable:
sendMissingTo: fallback | current
What you think?
from i18next.
Thanks for the fast reply.
That would be better indeed, but shouldn't the keys be present in every file? At least that's was what I initially though it would do. Then it would be harder for the translators to miss anything.
So what if the post would just add the missing key to every locale where it is missing?
from i18next.
ok sendMissingTo: fallback | current | all should cover this.
Will try to schedule this feature for next week.
from i18next.
feature done for version 1.3.5 - yet avaiable only as pre version i18next-1.3.5_pre.
option: sendMissingTo: fallback | current | all
from i18next.
Related Issues (20)
- 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
- Translations are not working when network connection is down HOT 4
- 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
- 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
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.