localized date-fns library

This commit is contained in:
Tomazed 2023-01-30 00:52:28 +01:00
parent 030c20b12e
commit e8d582269b
10 changed files with 27 additions and 1 deletions

View file

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