Coder Social home page Coder Social logo

Support for defaultLocale about redux-i18n HOT 7 CLOSED

apsl avatar apsl commented on September 16, 2024
Support for defaultLocale

from redux-i18n.

Comments (7)

francescarpi avatar francescarpi commented on September 16, 2024 1

Hi,
done in master branch. I'll build a new tag in next days.
Best regards.

from redux-i18n.

francescarpi avatar francescarpi commented on September 16, 2024

Hi Miha,
currently, if you have the next translation:

context.t('Hello world')

...and not exist in DE, the default output is in English version. But I understand that if you have this:

context.t('__hello_world__')

You would like that default translated output to be "Hello world" and not "hello_word".

Ok, I'm going to work for add "defaultLocale" configuration's parameter.

Best regards.

from redux-i18n.

mihaerzen avatar mihaerzen commented on September 16, 2024

But what if I want it the other way around? Scenario would be:

Given app has 100% of German translations and 80% of English translations
And user has language set to English
And defaultLocale for i18n is set to German
When user openes the app
Then user will see 80% of English text
And 20% of German text

Meaning option to change defaultLocale. I can provide example to explain better if necessary.

from redux-i18n.

mihaerzen avatar mihaerzen commented on September 16, 2024

Also what you wrote is correct yes.

from redux-i18n.

francescarpi avatar francescarpi commented on September 16, 2024

Hi Miha,
sorry for not say anything before. I've have a lot of work and I'll try to do as soon as possible.

To be patient :)

from redux-i18n.

mihaerzen avatar mihaerzen commented on September 16, 2024

Hey no worries. Plese write if you need help, I'm happy to contribute.

from redux-i18n.

francescarpi avatar francescarpi commented on September 16, 2024

Hi,
I've created a new tag ;)

from redux-i18n.

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.