GithubHelp home page GithubHelp logo

Comments (5)

esamattis avatar esamattis commented on May 18, 2024

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.

jamuhl avatar jamuhl commented on May 18, 2024

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.

esamattis avatar esamattis commented on May 18, 2024

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.

jamuhl avatar jamuhl commented on May 18, 2024

ok sendMissingTo: fallback | current | all should cover this.

Will try to schedule this feature for next week.

from i18next.

jamuhl avatar jamuhl commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.