Skip to content

Commit 114eb8a

Browse files
update
1 parent a36f207 commit 114eb8a

3 files changed

Lines changed: 20 additions & 9 deletions

File tree

src/lib/definitions.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,13 @@ function getFHPaddingEntries(index)
17621762
useLocaleNumeralDefinition('ا', '"fa"', NaN, 1, LOCALE_NUMERALS_EXT);
17631763
useLocaleNumeralDefinition('ع', '"fa"', NaN, 2, LOCALE_NUMERALS_EXT);
17641764
useLocaleNumeralDefinition('د', '"fa"', NaN, 3, LOCALE_NUMERALS_EXT);
1765+
useLocaleNumeralDefinition('ש', 'LOCALE_HE', -Infinity, 7, LOCALE_NUMERALS_IE11_WIN7_8);
1766+
useLocaleNumeralDefinition('י', 'LOCALE_HE', Infinity, 1, LOCALE_NUMERALS_IE11_WIN7_8);
1767+
useLocaleNumeralDefinition('נ', 'LOCALE_HE', Infinity, 2, LOCALE_NUMERALS_IE11_WIN7_8);
1768+
useLocaleNumeralDefinition('ו', 'LOCALE_HE', Infinity, 4, LOCALE_NUMERALS_IE11_WIN7_8);
1769+
useLocaleNumeralDefinition('ף', 'LOCALE_HE', Infinity, 5, LOCALE_NUMERALS_IE11_WIN7_8);
1770+
useLocaleNumeralDefinition('ח', 'LOCALE_HE', Infinity, 7, LOCALE_NUMERALS_IE11_WIN7_8);
1771+
useLocaleNumeralDefinition('ב', 'LOCALE_HE', Infinity, 10, LOCALE_NUMERALS_IE11_WIN7_8);
17651772
useLocaleNumeralDefinition('ל', 'LOCALE_HE', NaN, 0, LOCALE_NUMERALS_IE11_WIN7_8);
17661773
useLocaleNumeralDefinition('א', 'LOCALE_HE', NaN, 1, LOCALE_NUMERALS_IE11_WIN7_8);
17671774
useLocaleNumeralDefinition('מ', 'LOCALE_HE', NaN, 3, LOCALE_NUMERALS_IE11_WIN7_8);
@@ -1776,6 +1783,7 @@ function getFHPaddingEntries(index)
17761783
useLocaleNumeralDefinition('ń', '"pl"', Infinity, 7, LOCALE_NUMERALS_IE11_WIN7_8);
17771784
useLocaleNumeralDefinition('ś', '"pl"', Infinity, 13, LOCALE_NUMERALS_IE11_WIN7_8);
17781785
useLocaleNumeralDefinition('ć', '"pl"', Infinity, 14, LOCALE_NUMERALS_IE11_WIN7_8);
1786+
useLocaleNumeralDefinition('ą', '"pl"', NaN, 14, LOCALE_NUMERALS_IE11_WIN7_8);
17791787
useLocaleNumeralDefinition('н', '"ru"', NaN, 0, LOCALE_NUMERALS_EXT);
17801788
useLocaleNumeralDefinition('е', '"ru"', NaN, 1, LOCALE_NUMERALS_EXT);
17811789
useLocaleNumeralDefinition('ч', '"ru"', NaN, 3, LOCALE_NUMERALS_EXT);

src/lib/features.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,14 @@ var featureInfos =
348348
checkLocaleNumeral('el', Infinity, /^Άπε..ο/) &&
349349
checkLocaleNumeral('el', NaN, /^μη.αριθ.ός/) &&
350350
checkLocaleNumeral('he', NaN, /^לא.מספר/) &&
351+
checkLocaleNumeral('he', Infinity, /^.ינ.וף.ח..ב/) &&
352+
checkLocaleNumeral('he', -Infinity, /^.......ש/) &&
351353
checkLocaleNumeral('ja', Infinity, /^./) &&
352354
checkLocaleNumeral('ja', NaN, /^...../) &&
353355
checkLocaleNumeral('lt', Infinity, /^.......ė/) &&
354356
checkLocaleNumeral('pl', Infinity, /^.......ń.....ść/) &&
355-
checkLocaleNumeral('zh', Infinity, /^../) &&
356-
checkLocaleNumeral('zh-cn', Infinity, /^./) &&
357+
checkLocaleNumeral('pl', NaN, /^..............ą/) &&
358+
checkLocaleNumeral('zh', Infinity, /^/) &&
357359
checkLocaleNumeral('zh-cn', NaN, /^../);
358360
return available;
359361
},

test/helpers/feature-emulation.helpers.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,10 @@
835835
case 'he':
836836
if (isNaN(number))
837837
returnValue = 'לא\xa0מספר';
838+
else if (+this === Infinity)
839+
returnValue = 'אינסוף חיובי';
840+
else if (+this === -Infinity)
841+
returnValue = 'אינסוף שלילי';
838842
break;
839843
case 'ja':
840844
if (isNaN(number))
@@ -856,15 +860,12 @@
856860
}
857861
break;
858862
case 'pl':
859-
switch (this)
860-
{
861-
case Infinity:
863+
if (isNaN(number))
864+
returnValue = 'nie jest liczbą';
865+
else if (+this === Infinity)
862866
returnValue = '+nieskończoność';
863-
break;
864-
case -Infinity:
867+
else if (+this === -Infinity)
865868
returnValue = '-nieskończoność';
866-
break;
867-
}
868869
break;
869870
case 'zh':
870871
switch (this)

0 commit comments

Comments
 (0)