在将软件本地化为印地语时,使用什么数字系统的意见似乎不同:
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)
-> १२३४५६
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
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
哪个是对的?或者没有确定的答案?