mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 09:24:56 +02:00
Update:Library stats to format numbers using selected language #2861, clean up UI for library stats preview icons
This commit is contained in:
parent
b03198abd9
commit
a57fe42dff
3 changed files with 23 additions and 18 deletions
|
@ -74,6 +74,10 @@ Vue.prototype.$getString = (key, subs) => {
|
|||
return Vue.prototype.$strings[key]
|
||||
}
|
||||
|
||||
Vue.prototype.$formatNumber = (num) => {
|
||||
return Intl.NumberFormat(Vue.prototype.$languageCodes.current).format(num)
|
||||
}
|
||||
|
||||
const translations = {
|
||||
[defaultCode]: enUsStrings
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue