Update numbers to use Intl.NumberFormat with selected locale #1427

This commit is contained in:
advplyr 2025-01-18 14:24:44 -06:00
parent b2eff46c38
commit a35c94cf03
4 changed files with 13 additions and 9 deletions

View file

@ -62,6 +62,10 @@ Vue.prototype.$getString = (key, subs) => {
return Vue.prototype.$strings[key]
}
Vue.prototype.$formatNumber = (num) => {
return Intl.NumberFormat(Vue.prototype.$languageCodes.current).format(num)
}
var translations = {
[defaultCode]: enUsStrings
}