fix: editor locale redirect + welcome page localization
This commit is contained in:
1 parent
d546695143
commit
6974811658
7 files changed
+58
-14
No files matched your search
@@ -37,7 +37,7 @@ module.exports = async (localeCode) => {
|
||||
const locales = await WIKI.cache.get('locales')
|
||||
if (locales) {
|
||||
const currentLocale = _.find(locales, ['code', localeCode]) || {}
|
||||
const existingLocale = await WIKI.models.locales.query().where('code', localeCode)
|
||||
const existingLocale = await WIKI.models.locales.query().where('code', localeCode).first()
|
||||
if (existingLocale) {
|
||||
await WIKI.models.locales.query().patch({
|
||||
strings: lcObj
|
||||
|
||||
Reference in new issue
Block a user