Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix: cannot load locale mesages (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed May 22, 2021
1 parent 1cdfbfe commit 66e08dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generator/templates-vue3/js/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function loadLocaleMessages() {
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
if (matched && matched.length > 1) {
const locale = matched[1]
messages[locale] = locales(key).default
messages[locale] = locales(key)
}
})
return messages
Expand Down
2 changes: 1 addition & 1 deletion generator/templates-vue3/ts/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function loadLocaleMessages(): LocaleMessages<VueMessageType> {
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
if (matched && matched.length > 1) {
const locale = matched[1]
messages[locale] = locales(key).default
messages[locale] = locales(key)
}
})
return messages
Expand Down
2 changes: 1 addition & 1 deletion generator/templates/ts/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function loadLocaleMessages (): LocaleMessages {
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
if (matched && matched.length > 1) {
const locale = matched[1]
messages[locale] = locales(key).default
messages[locale] = locales(key)
}
})
return messages
Expand Down

0 comments on commit 66e08dd

Please sign in to comment.