@phensley/cldr-core
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -127,5 +127,12 @@ import { __extends } from "tslib"; | ||
CalendarPatterns.prototype.getTimeData = function () { | ||
var w = timeData['']['001']; | ||
var t = timeData[''][this.region] || (timeData[this.language] || /* istanbul ignore next */ {})[this.region]; | ||
return timeStrings[t !== undefined ? t : w].split('|'); | ||
var world = timeData['']['001']; | ||
var region; | ||
var lang = timeData[this.language]; | ||
if (lang !== undefined) { | ||
region = lang[this.region]; | ||
} | ||
if (region === undefined) { | ||
region = timeData[''][this.region]; | ||
} | ||
return timeStrings[region !== undefined ? region : world].split('|'); | ||
}; | ||
@@ -132,0 +139,0 @@ return CalendarPatterns; |
{ | ||
"name": "@phensley/cldr-core", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Core library for @phensley/cldr", | ||
@@ -39,11 +39,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/cldr-types": "workspace:~1.10.0", | ||
"@phensley/cldr-utils": "workspace:~1.10.0", | ||
"@phensley/decimal": "workspace:~1.10.0", | ||
"@phensley/language-tag": "workspace:~1.10.0", | ||
"@phensley/locale": "workspace:~1.10.0", | ||
"@phensley/locale-matcher": "workspace:~1.10.0", | ||
"@phensley/messageformat": "workspace:~1.10.0", | ||
"@phensley/plurals": "workspace:~1.10.0", | ||
"@phensley/timezone": "workspace:~1.10.0", | ||
"@phensley/cldr-types": "workspace:~1.10.1", | ||
"@phensley/cldr-utils": "workspace:~1.10.1", | ||
"@phensley/decimal": "workspace:~1.10.1", | ||
"@phensley/language-tag": "workspace:~1.10.1", | ||
"@phensley/locale": "workspace:~1.10.1", | ||
"@phensley/locale-matcher": "workspace:~1.10.1", | ||
"@phensley/messageformat": "workspace:~1.10.1", | ||
"@phensley/plurals": "workspace:~1.10.1", | ||
"@phensley/timezone": "workspace:~1.10.1", | ||
"tslib": "^2.8.1" | ||
@@ -50,0 +50,0 @@ }, |
@@ -130,5 +130,12 @@ "use strict"; | ||
CalendarPatterns.prototype.getTimeData = function () { | ||
var w = autogen_timedata_1.timeData['']['001']; | ||
var t = autogen_timedata_1.timeData[''][this.region] || (autogen_timedata_1.timeData[this.language] || /* istanbul ignore next */ {})[this.region]; | ||
return autogen_timedata_1.timeStrings[t !== undefined ? t : w].split('|'); | ||
var world = autogen_timedata_1.timeData['']['001']; | ||
var region; | ||
var lang = autogen_timedata_1.timeData[this.language]; | ||
if (lang !== undefined) { | ||
region = lang[this.region]; | ||
} | ||
if (region === undefined) { | ||
region = autogen_timedata_1.timeData[''][this.region]; | ||
} | ||
return autogen_timedata_1.timeStrings[region !== undefined ? region : world].split('|'); | ||
}; | ||
@@ -135,0 +142,0 @@ return CalendarPatterns; |
{ | ||
"name": "@phensley/cldr-core", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Core library for @phensley/cldr", | ||
@@ -39,11 +39,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/cldr-types": "workspace:~1.10.0", | ||
"@phensley/cldr-utils": "workspace:~1.10.0", | ||
"@phensley/decimal": "workspace:~1.10.0", | ||
"@phensley/language-tag": "workspace:~1.10.0", | ||
"@phensley/locale": "workspace:~1.10.0", | ||
"@phensley/locale-matcher": "workspace:~1.10.0", | ||
"@phensley/messageformat": "workspace:~1.10.0", | ||
"@phensley/plurals": "workspace:~1.10.0", | ||
"@phensley/timezone": "workspace:~1.10.0", | ||
"@phensley/cldr-types": "workspace:~1.10.1", | ||
"@phensley/cldr-utils": "workspace:~1.10.1", | ||
"@phensley/decimal": "workspace:~1.10.1", | ||
"@phensley/language-tag": "workspace:~1.10.1", | ||
"@phensley/locale": "workspace:~1.10.1", | ||
"@phensley/locale-matcher": "workspace:~1.10.1", | ||
"@phensley/messageformat": "workspace:~1.10.1", | ||
"@phensley/plurals": "workspace:~1.10.1", | ||
"@phensley/timezone": "workspace:~1.10.1", | ||
"tslib": "^2.8.1" | ||
@@ -50,0 +50,0 @@ }, |
{ | ||
"name": "@phensley/cldr-core", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Core library for @phensley/cldr", | ||
@@ -23,11 +23,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/cldr-types": "~1.10.0", | ||
"@phensley/cldr-utils": "~1.10.0", | ||
"@phensley/decimal": "~1.10.0", | ||
"@phensley/language-tag": "~1.10.0", | ||
"@phensley/locale": "~1.10.0", | ||
"@phensley/locale-matcher": "~1.10.0", | ||
"@phensley/messageformat": "~1.10.0", | ||
"@phensley/plurals": "~1.10.0", | ||
"@phensley/timezone": "~1.10.0", | ||
"@phensley/cldr-types": "~1.10.1", | ||
"@phensley/cldr-utils": "~1.10.1", | ||
"@phensley/decimal": "~1.10.1", | ||
"@phensley/language-tag": "~1.10.1", | ||
"@phensley/locale": "~1.10.1", | ||
"@phensley/locale-matcher": "~1.10.1", | ||
"@phensley/messageformat": "~1.10.1", | ||
"@phensley/plurals": "~1.10.1", | ||
"@phensley/timezone": "~1.10.1", | ||
"tslib": "^2.8.1" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2325492
23469
Updated@phensley/cldr-types@~1.10.1
Updated@phensley/cldr-utils@~1.10.1
Updated@phensley/decimal@~1.10.1
Updated@phensley/locale@~1.10.1
Updated@phensley/plurals@~1.10.1
Updated@phensley/timezone@~1.10.1