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:
Grégoire Castre
2016-03-03 11:19:40 +01:00
parent bd2e6f4da0
commit 5350bbd7f0

View File

@@ -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: "-" | "_";
}
}