Код: Выделить всё
console.log( new Intl.NumberFormat('he-u-nu-hebr').format(5) );
console.log( new Intl.NumberFormat('he').format(5) );
console.log( new Intl.NumberFormat('he-u-nu-hebr', {numberingFormat: 'hebr'}).format(5) );
console.log( new Intl.NumberFormat('he', {numberingFormat: 'hebr'}).format(5) );В Chrome, Chrome, Firefox. Они все пишут 5. У меня нет такой проблемы с арабским, я использую:
Код: Выделить всё
console.log( new Intl.NumberFormat('ar-u-nu-arab').format(5) );И цифры сразу арабские. Как заставить его писать буквы иврита?
Подробнее здесь: https://stackoverflow.com/questions/798 ... ber-in-lat
Мобильная версия