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]