Git Product home page Git Product logo

Comments (5)

nijel avatar nijel commented on June 9, 2024 1

As Weblate supports v4 now as well, I've added hint about plurals to our docs: WeblateOrg/weblate@bf7db3c

from translate.

nijel avatar nijel commented on June 9, 2024

The code states it is based on https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html, but that is not true as well.

Farsi mentioned in WeblateOrg/weblate#8625 has two plurals there (same as in CLDR), but only one in i18next. Maybe this is i18next bug in the end?

from translate.

nijel avatar nijel commented on June 9, 2024

Okay, I think it's a bug in i18next, there were already similar in the past, see i18next/i18next#1607

from translate.

SamantazFox avatar SamantazFox commented on June 9, 2024

Okay, I think it's a bug in i18next, there were already similar in the past, see i18next/i18next#1607

Ok, thanks! I'll open an issue there, then!

from translate.

SamantazFox avatar SamantazFox commented on June 9, 2024

It turns out that i18next decided to build their own plural rules instead of relying on CLDR like nearly everybody else. Because of that plural tags differ for some language in translate-toolkit and the original code.

I looked more into this. They moved to the v4 format exactly for that reason.

So now, the v3 plural rules are set into the stone (and forever broken) and the v4 rules depends on the Intl Javascript API, which is maintained by upstream (NodeJS/Chromium/Firefo/etc...) and change according to the CLDR.

from translate.

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.