@alauda/doom 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/load-config.js +2 -2
- package/package.json +1 -1
package/lib/cli/load-config.js
CHANGED
|
@@ -21,13 +21,13 @@ const zhLocaleConfig = {
|
|
|
21
21
|
nextPageText: '下一页',
|
|
22
22
|
};
|
|
23
23
|
const getCommonConfig = (config, cliRoot, configFilePath, version, ignore, force) => {
|
|
24
|
-
const fallbackToZh = 'lang' in config && config.lang
|
|
24
|
+
const fallbackToZh = 'lang' in config && !config.lang;
|
|
25
25
|
const root = resolveDocRoot(CWD, cliRoot, config.root);
|
|
26
26
|
const localBasePath = configFilePath ? path.dirname(configFilePath) : root;
|
|
27
27
|
const excludeRoutes = (ignore && config.internalRoutes) || [];
|
|
28
28
|
return {
|
|
29
29
|
root,
|
|
30
|
-
lang: fallbackToZh ? 'zh' : config.lang,
|
|
30
|
+
lang: fallbackToZh ? 'zh' : config.lang || 'en',
|
|
31
31
|
title: '',
|
|
32
32
|
route: {
|
|
33
33
|
exclude: [
|