mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 18:15:01 +02:00
Update numbers to use Intl.NumberFormat with selected locale #1427
This commit is contained in:
parent
b2eff46c38
commit
a35c94cf03
4 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue