From 3681d1a9da5659d17cbbbefd78514e523d0e051b Mon Sep 17 00:00:00 2001 From: sqrtthree Date: Fri, 11 Jun 2021 13:08:38 +0800 Subject: [PATCH] fix: fix build error with lastUpdated resolve #24 --- helpers/locales.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/locales.js b/helpers/locales.js index 9713a18..4157a2c 100644 --- a/helpers/locales.js +++ b/helpers/locales.js @@ -21,7 +21,7 @@ exports.defaultLocales = { } exports.getDefaultLocales = ($locale, path) => { - let value = exports.defaultLocales[$locale] + let value = exports.defaultLocales[$locale] || exports.defaultLocales['/'] path.split('.').forEach((item) => { value = value[item]