mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-04 22:06:33 +01:00
Update numbers to use Intl.NumberFormat with selected locale #1427
This commit is contained in:
1 parent
b2eff46c38
commit
a35c94cf03
4 files changed
+13
-9
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user