mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-06 20:08:48 +02:00
Update numbers to use Intl.NumberFormat with selected locale #1427
This commit is contained in:
@@ -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