Giter Club home page Giter Club logo

Comments (7)

voidgraphics avatar voidgraphics commented on July 30, 2024 1

We could make that work. I'll get on it in a couple hours.

from lingua.

voidgraphics avatar voidgraphics commented on July 30, 2024 1

You can update your dependency to 1.0.2 to get the changes. 🙌

from lingua.

kangoo13 avatar kangoo13 commented on July 30, 2024

It's the same for indonesian (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes search for "Changed in 1989 from original ISO 639:1988")

from lingua.

voidgraphics avatar voidgraphics commented on July 30, 2024

Hi, if my understanding is correct, the ISO 639-1 code for Hebrew was "iw" before 1988, and was then changed to "he", is this correct?

If so, then should we really prioritize the old outdated code over the new one?

from lingua.

kangoo13 avatar kangoo13 commented on July 30, 2024

Yes that's it for the first question,

As for the second, we should just be able to detect that "iw" is hebrew, we could consider many ways like an 'outdated' language code key in languages.php or something else. Because when the language is detected and we ask back for the iso6391 code it should returns indeed "he" and not "iw"

from lingua.

kangoo13 avatar kangoo13 commented on July 30, 2024

Thank you ! If you need any help I am at your disposal 👍

from lingua.

voidgraphics avatar voidgraphics commented on July 30, 2024

It should work now. I have added the "iw" deprecated code for Hebrew, but if you can think of other instances where we could add deprecated codes, we would gladly accept PR's!

To do this, in the languages.php file, you can add a deprecated key, like so:

[
    'name' => 'hebrew',
    'native' => 'עברית',
    'iso-639-1' => 'he',
    'iso-639-2t' => 'heb',
    'iso-639-2b' => 'heb',
    'iso-639-3' => 'heb',
    'countries' => ['IL' => 'Israel'],
    'deprecated' => [
        'iso-639-1' => 'iw'
    ],
    'scripts' => []
],

from lingua.

Related Issues (2)

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.