什么数字系统应该用于hi(印地语)语言环境?

时间:2017-04-03 17:48:25

标签: localization locale momentjs hindi

在将软件本地化为印地语时,使用什么数字系统的意见似乎不同:

的Java

hi:西方阿拉伯语

Locale hi = new Locale("hi")
System.out.format(hi, "%d", 123456)
-> 123456

hi_IN:梵文

Locale hi_IN = new Locale("hi", "IN")
System.out.format(hi_IN, "%d", 123456)
-> १२३४५६

JavaScript - nodejs

hi:西方阿拉伯语

console.log(new Intl.NumberFormat('hi').format(123456.7890));
-> 1,23,456.789

hi-in:西方阿拉伯语

console.log(new Intl.NumberFormat('hi-IN').format(123456.7890));
-> 1,23,456.789

JavaScript - Firefox

hi:西方阿拉伯语

console.log(new Intl.NumberFormat('hi').format(123456.7890));
-> 1,23,456.789

hi-in:西方阿拉伯语

console.log(new Intl.NumberFormat('hi-IN').format(123456.7890));
-> 1,23,456.789

moment.js

hi:梵文

https://github.com/moment/moment/blob/develop/locale/hi.js#L13-L36

所以...

哪个是对的?或者没有确定的答案?

0 个答案:

没有答案