« Bugzilla Issues Index
#4365 — Exposing IsStructurallyValidLanguageTag and CanonicalizeLanguageTag in Intl api
- bug_id:
4365
- creation_ts:
2015-05-14 16:23:00 -0700
- short_desc:
Exposing IsStructurallyValidLanguageTag and CanonicalizeLanguageTag in Intl api
- delta_ts:
2015-05-15 12:32:59 -0700
- product:
Internationalization - ECMA-402
- component:
Specification
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
DUPLICATE
- dup_id:
697
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Marcos
- assigned_to:
Rick Waldron
- cc:
marcos
- commentid:
14407
- comment_count:
0
- who:
Marcos
- bug_when:
2015-05-14 16:23:37 -0700
Would it make sense to expose the following two abstract operations through the Intl API:
* IsStructurallyValidLanguageTag
* CanonicalizeLanguageTag
For example:
Intl.areStructurallyValid(tags); // returns boolean
Intl.canonicalize(tags); // returns an array of tags in canonical form
I have a need to access these two abstract operations in a spec I'm working on, but I have no means to access them directly in Gecko (and would prefer not to re-implement the the algorithms independently of what we already have in Gecko).
The spec I'm implementing (steps 4 and 5):
http://w3c.github.io/manifest/#lang-member
- commentid:
14408
- comment_count:
1
- who:
Marcos
- bug_when:
2015-05-15 12:32:59 -0700
*** This bug has been marked as a duplicate of bug 697 ***