@bleedingdev/modern-js-create 3.2.0-ultramodern.116 → 3.2.0-ultramodern.117

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.
@@ -38,7 +38,6 @@ var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_no
38
38
  const external_node_readline_namespaceObject = require("node:readline");
39
39
  var external_node_readline_default = /*#__PURE__*/ __webpack_require__.n(external_node_readline_namespaceObject);
40
40
  const external_node_url_namespaceObject = require("node:url");
41
- const language_detector_namespaceObject = require("@modern-js/i18n-utils/language-detector");
42
41
  const external_create_package_root_cjs_namespaceObject = require("./create-package-root.cjs");
43
42
  const index_cjs_namespaceObject = require("./locale/index.cjs");
44
43
  const external_ultramodern_package_source_cjs_namespaceObject = require("./ultramodern-package-source.cjs");
@@ -103,9 +102,7 @@ const detectLanguage = ()=>{
103
102
  '--lang',
104
103
  '-l'
105
104
  ]);
106
- if (lang) return 'zh' === lang ? 'zh' : 'en';
107
- const detectedLang = (0, language_detector_namespaceObject.getLocaleLanguage)();
108
- if ('zh' === detectedLang) return 'zh';
105
+ if ('zh' === lang) return 'zh';
109
106
  return 'en';
110
107
  };
111
108
  index_cjs_namespaceObject.i18n.changeLanguage({
@@ -57,7 +57,7 @@ const EN_LOCALE = {
57
57
  options: '⚙️ Options:',
58
58
  optionHelp: ' -h, --help Display this help message',
59
59
  optionVersion: ' -v, --version Display version information',
60
- optionLang: ' -l, --lang Set the language (zh or en)',
60
+ optionLang: ' -l, --lang Set the language (en default; zh opt-in)',
61
61
  optionRouter: ' -r, --router Select router framework (tanstack default; react-router is compatibility mode)',
62
62
  optionBff: ' --bff Keep Effect BFF enabled (default for UltraModern apps)',
63
63
  optionBffRuntime: ' --bff-runtime Select BFF runtime (hono or effect)',
@@ -57,7 +57,7 @@ const ZH_LOCALE = {
57
57
  options: '⚙️ 选项:',
58
58
  optionHelp: ' -h, --help 显示帮助信息',
59
59
  optionVersion: ' -v, --version 显示版本信息',
60
- optionLang: ' -l, --lang 设置语言 (zh 或 en)',
60
+ optionLang: ' -l, --lang 设置语言 (默认 en;zh 需显式选择)',
61
61
  optionRouter: ' -r, --router 选择路由框架(默认 tanstack;react-router 为兼容模式)',
62
62
  optionBff: ' --bff 保持启用 Effect BFF(UltraModern 应用默认值)',
63
63
  optionBffRuntime: ' --bff-runtime 选择 BFF 运行时(hono 或 effect)',
package/dist/esm/index.js CHANGED
@@ -4,7 +4,6 @@ import node_fs from "node:fs";
4
4
  import node_path from "node:path";
5
5
  import node_readline from "node:readline";
6
6
  import { fileURLToPath } from "node:url";
7
- import { getLocaleLanguage } from "@modern-js/i18n-utils/language-detector";
8
7
  import { resolveCreatePackageRoot } from "./create-package-root.js";
9
8
  import { i18n, localeKeys } from "./locale/index.js";
10
9
  import { BLEEDINGDEV_CREATE_PACKAGE, BLEEDINGDEV_FRAMEWORK_VERSION_ENV, BLEEDINGDEV_PACKAGE_NAME_PREFIX, BLEEDINGDEV_PACKAGE_SCOPE, ULTRAMODERN_SINGLE_APP_MODERN_PACKAGES, WORKSPACE_PACKAGE_VERSION, createModernPackagesMetadata, modernPackageSpecifier } from "./ultramodern-package-source.js";
@@ -69,9 +68,7 @@ const detectLanguage = ()=>{
69
68
  '--lang',
70
69
  '-l'
71
70
  ]);
72
- if (lang) return 'zh' === lang ? 'zh' : 'en';
73
- const detectedLang = getLocaleLanguage();
74
- if ('zh' === detectedLang) return 'zh';
71
+ if ('zh' === lang) return 'zh';
75
72
  return 'en';
76
73
  };
77
74
  i18n.changeLanguage({
@@ -28,7 +28,7 @@ const EN_LOCALE = {
28
28
  options: '⚙️ Options:',
29
29
  optionHelp: ' -h, --help Display this help message',
30
30
  optionVersion: ' -v, --version Display version information',
31
- optionLang: ' -l, --lang Set the language (zh or en)',
31
+ optionLang: ' -l, --lang Set the language (en default; zh opt-in)',
32
32
  optionRouter: ' -r, --router Select router framework (tanstack default; react-router is compatibility mode)',
33
33
  optionBff: ' --bff Keep Effect BFF enabled (default for UltraModern apps)',
34
34
  optionBffRuntime: ' --bff-runtime Select BFF runtime (hono or effect)',
@@ -28,7 +28,7 @@ const ZH_LOCALE = {
28
28
  options: '⚙️ 选项:',
29
29
  optionHelp: ' -h, --help 显示帮助信息',
30
30
  optionVersion: ' -v, --version 显示版本信息',
31
- optionLang: ' -l, --lang 设置语言 (zh 或 en)',
31
+ optionLang: ' -l, --lang 设置语言 (默认 en;zh 需显式选择)',
32
32
  optionRouter: ' -r, --router 选择路由框架(默认 tanstack;react-router 为兼容模式)',
33
33
  optionBff: ' --bff 保持启用 Effect BFF(UltraModern 应用默认值)',
34
34
  optionBffRuntime: ' --bff-runtime 选择 BFF 运行时(hono 或 effect)',
@@ -5,7 +5,6 @@ import node_fs from "node:fs";
5
5
  import node_path from "node:path";
6
6
  import node_readline from "node:readline";
7
7
  import { fileURLToPath } from "node:url";
8
- import { getLocaleLanguage } from "@modern-js/i18n-utils/language-detector";
9
8
  import { resolveCreatePackageRoot } from "./create-package-root.js";
10
9
  import { i18n, localeKeys } from "./locale/index.js";
11
10
  import { BLEEDINGDEV_CREATE_PACKAGE, BLEEDINGDEV_FRAMEWORK_VERSION_ENV, BLEEDINGDEV_PACKAGE_NAME_PREFIX, BLEEDINGDEV_PACKAGE_SCOPE, ULTRAMODERN_SINGLE_APP_MODERN_PACKAGES, WORKSPACE_PACKAGE_VERSION, createModernPackagesMetadata, modernPackageSpecifier } from "./ultramodern-package-source.js";
@@ -70,9 +69,7 @@ const detectLanguage = ()=>{
70
69
  '--lang',
71
70
  '-l'
72
71
  ]);
73
- if (lang) return 'zh' === lang ? 'zh' : 'en';
74
- const detectedLang = getLocaleLanguage();
75
- if ('zh' === detectedLang) return 'zh';
72
+ if ('zh' === lang) return 'zh';
76
73
  return 'en';
77
74
  };
78
75
  i18n.changeLanguage({
@@ -29,7 +29,7 @@ const EN_LOCALE = {
29
29
  options: '⚙️ Options:',
30
30
  optionHelp: ' -h, --help Display this help message',
31
31
  optionVersion: ' -v, --version Display version information',
32
- optionLang: ' -l, --lang Set the language (zh or en)',
32
+ optionLang: ' -l, --lang Set the language (en default; zh opt-in)',
33
33
  optionRouter: ' -r, --router Select router framework (tanstack default; react-router is compatibility mode)',
34
34
  optionBff: ' --bff Keep Effect BFF enabled (default for UltraModern apps)',
35
35
  optionBffRuntime: ' --bff-runtime Select BFF runtime (hono or effect)',
@@ -29,7 +29,7 @@ const ZH_LOCALE = {
29
29
  options: '⚙️ 选项:',
30
30
  optionHelp: ' -h, --help 显示帮助信息',
31
31
  optionVersion: ' -v, --version 显示版本信息',
32
- optionLang: ' -l, --lang 设置语言 (zh 或 en)',
32
+ optionLang: ' -l, --lang 设置语言 (默认 en;zh 需显式选择)',
33
33
  optionRouter: ' -r, --router 选择路由框架(默认 tanstack;react-router 为兼容模式)',
34
34
  optionBff: ' --bff 保持启用 Effect BFF(UltraModern 应用默认值)',
35
35
  optionBffRuntime: ' --bff-runtime 选择 BFF 运行时(hono 或 effect)',
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.2.0-ultramodern.116",
24
+ "version": "3.2.0-ultramodern.117",
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "main": "./dist/esm-node/index.js",
27
27
  "bin": {
@@ -52,7 +52,7 @@
52
52
  "bin.js"
53
53
  ],
54
54
  "dependencies": {
55
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.116"
55
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.117"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@rslib/core": "0.21.5",
@@ -73,6 +73,6 @@
73
73
  "test": "rm -rf dist && rslib build -c rslibconfig.mts && rstest --passWithNoTests"
74
74
  },
75
75
  "ultramodern": {
76
- "frameworkVersion": "3.2.0-ultramodern.116"
76
+ "frameworkVersion": "3.2.0-ultramodern.117"
77
77
  }
78
78
  }