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

Commit 14bad4c

Browse files
authored
fix issue #182 (#183)
1 parent 6048dba commit 14bad4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/templates/js/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function loadLocaleMessages () {
1010
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
1111
if (matched && matched.length > 1) {
1212
const locale = matched[1]
13-
messages[locale] = locales(key).default
13+
messages[locale] = locales(key)
1414
}
1515
})
1616
return messages

0 commit comments

Comments
 (0)