Closed
Bug 1201234
Opened 9 years ago
Closed 6 years ago
Add selected files from the JSON version of the Unicode CLDR to Gaia's L10n
Categories
(Firefox OS Graveyard :: Gaia::Build, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: tedders1, Unassigned)
References
Details
For various reasons, we need access to the Unicode CLDR. ICU provides some access to the CLDR, but it's too limited for our needs, and it's not accessible from Javascript. Unicode publishes a JSON version of the CLDR, available through a GitHub repository (https://github.com/unicode-cldr/cldr-core). It would be easy to include it as part of Gaia. However, the complete CLDR is huge. It would be nice to be able to specify a subset of files to include, and it would be nice if locale-specific files were included only when the associated locale is part of the Gaia build.
Comment 1•9 years ago
|
||
Interesting, it doesn't look like they publish the plural rules? L10n.js ships with all plural rules for all Gaia locales. Multiply that by the number of apps which include l10n.js and it's clear that we could benefit from a more centralized way of storing the plural rules. I wonder if that's something we could ask CLDR to add.
Comment 2•9 years ago
|
||
Those are the things I'd love to see available soon: - https://github.com/zbraniecki/l20n.js/blob/v3-webl10n/examples/api/js/intl.js My priorities right now would be: 1) plural rules 2) lists 3) units 4) relative time 5) relative date ("in 1 day", "1 day ago" etc.) Second priority would be things like: 1) List of Countries/Regions 2) List of Timezones 3) List of language names I can see us looking to extend Ecma 402 Intl API to accommodate those, and I'd love to have access to CLDR to shim the Intl v2 API for Gaia use for now.
Comment 3•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•