Ensure language tag correctness
Categories
(Firefox :: Translations, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox114 | --- | fixed |
People
(Reporter: nordzilla, Assigned: nordzilla)
References
Details
Attachments
(3 files)
The language tags returned by fastText language detection are codes from the ISO639-3 specification:
https://iso639-3.sil.org/code_tables/639/data
The language tags that we use internally in Firefox are from the BCP47 specification:
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
We should ensure that all of the possible mappings from fastText are valid.
Secondly, the existing code has been created with the notion that language tags are two characters. This is true of all of the languages that Firefox Translations currently supports, however BCP47 language tags can be more than two characters long.
We should ensure that the code can support language tags of any length.
| Assignee | ||
Comment 1•2 years ago
|
||
Ensure that the terminology of "langTag" is consistent across
all of the Firefox Translations code. Some code was previously
using "languageLabel" which is a term used by fastText.
| Assignee | ||
Comment 2•2 years ago
|
||
Covers edge cases when converting fastText language tags
to the language tags used internally by Firefox.
Depends on D176584
| Assignee | ||
Comment 3•2 years ago
|
||
Ensures that Firefox Translations supports langTags
of more than two characters. All of our currently supported
languages have two-character tags, but future languages
may be longer.
Depends on D176585
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/08155114af96
https://hg.mozilla.org/mozilla-central/rev/66762cdff9ef
https://hg.mozilla.org/mozilla-central/rev/fe53ffc783bf
Description
•