mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 19:04:13 +08:00
Add the localeSep to allow the user to override it
cf: https://github.com/rxaviers/cldrjs/blob/master/src/core.js#L46
This commit is contained in:
7
cldr.js/cldr.js.d.ts
vendored
7
cldr.js/cldr.js.d.ts
vendored
@@ -242,6 +242,13 @@ declare module cldr {
|
||||
* @returns {cldr.CldrStatic} The instance of {@link cldr.CldrStatic} class.
|
||||
*/
|
||||
new (locale: string): CldrStatic;
|
||||
|
||||
/**
|
||||
* Allow user to override locale separator "-" (default) | "_".
|
||||
* According to http://www.unicode.org/reports/tr35/#Unicode_language_identifier, both "-" and "_" are valid locale separators (eg. "en_GB", "en-GB").
|
||||
* According to http://unicode.org/cldr/trac/ticket/6786 its usage must be consistent throughout the data set.
|
||||
*/
|
||||
localeSep: "-" | "_";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user