mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 09:14:40 +02:00
localized date-fns library
This commit is contained in:
parent
030c20b12e
commit
e8d582269b
10 changed files with 27 additions and 1 deletions
|
@ -73,6 +73,8 @@ async function loadi18n(code) {
|
|||
for (const key in Vue.prototype.$strings) {
|
||||
Vue.prototype.$strings[key] = strings[key] || translations[defaultCode][key]
|
||||
}
|
||||
console.log(`ConfigDateFnsLocale = ${translations[code].ConfigDateFnsLocale}`)
|
||||
Vue.prototype.$setDateFnsLocale(translations[code].ConfigDateFnsLocale)
|
||||
|
||||
console.log('i18n strings=', Vue.prototype.$strings)
|
||||
Vue.prototype.$eventBus.$emit('change-lang', code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue