Code Monkey home page Code Monkey logo

Comments (3)

dgabrielli76 avatar dgabrielli76 commented on July 28, 2024 1

Yes my request is what you say in the second time, so my proposal here is to create a new property defaultLanguage to be sure that even if the language property is not in the dictionary (spanish in this example) the defaultLanguage (so english or french in this example it depends of the choice I will made) will be applied.
I am sorry if it was not very clear.

Hmm #22 is not really what I mean, but here in this issue @felixzapata says exactly what I mean.
The proposal is not to return the key in the language it is because this language was not find in the dictionary, but to return the key in the defaultLanguage, and this defaultLanguagewill be set in a property.

I also agree with the #22 that if the key could not be match in the dictionary it is better to return it instead of throwing an error, but I think my proposal and this issue should be two distinct enhancement.

from app-localize-behavior.

notwaldorf avatar notwaldorf commented on July 28, 2024

Just trying to understand this: if there's no languages in the dictionary (or, if there's just one), why would you use the behaviour? Or do you mean that (let's say) you only have english and french in the dictionary, and the browser language is spanish, which isn't in the dictionary?

If it's the latter, I think this might solve your problem, maybe? #22

from app-localize-behavior.

dgabrielli76 avatar dgabrielli76 commented on July 28, 2024

Any update about this feature request?

from app-localize-behavior.

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.