Update:Library stats to format numbers using selected language #2861, clean up UI for library stats preview icons

This commit is contained in:
advplyr 2024-04-18 17:30:06 -05:00
parent b03198abd9
commit a57fe42dff
3 changed files with 23 additions and 18 deletions

View file

@ -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
}