Skip to content

Commit 3681d1a

Browse files
author
sqrtthree
committed
fix: fix build error with lastUpdated
resolve #24
1 parent 973f937 commit 3681d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports.defaultLocales = {
2121
}
2222

2323
exports.getDefaultLocales = ($locale, path) => {
24-
let value = exports.defaultLocales[$locale]
24+
let value = exports.defaultLocales[$locale] || exports.defaultLocales['/']
2525

2626
path.split('.').forEach((item) => {
2727
value = value[item]

0 commit comments

Comments
 (0)