Coder Social home page Coder Social logo

Comments (3)

marcglasberg avatar marcglasberg commented on August 17, 2024

Ok, I can remove the _ and turn en_ into en. Easy fix, but, a question: isn't en_ a malformed Locale? Do you know the link to the Locale specification?

from i18n_extension.

IchordeDionysos avatar IchordeDionysos commented on August 17, 2024

@marcglasberg I did some research 🤔
In the dart documentation the method Locale.toString() they say:

it is intended to be used for debugging purposes only. For parseable results, use toLanguageTag instead.

However, in this package locale.toString() is used.

I was not sure if this was the problem so I did some debugging and found out that:
Locale("en") is okay and will output "en",
Locale("en", "") is not okay and will output "en_", ...

A bit more info: This happens on my iOS Simulator 🤔

As this seems to be at the root a Flutter issue, I opened one over there.
flutter/flutter#43607

from i18n_extension.

marcglasberg avatar marcglasberg commented on August 17, 2024

In any case it now removes extra spaces and "_", so this should be fixed.

from i18n_extension.

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.