@tuya-sat/micro-utils 2.3.0 → 3.0.0-beta.3

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.
Files changed (2) hide show
  1. package/dist/getLang.js +2 -2
  2. package/package.json +1 -1
package/dist/getLang.js CHANGED
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.nameProcesser2 = void 0;
7
7
  const fs_extra_1 = __importDefault(require("fs-extra"));
8
8
  const path_1 = __importDefault(require("path"));
9
- const zhLang = fs_extra_1.default.readJSONSync(path_1.default.resolve(process.cwd(), "_locales/zh-CN.json"));
10
- const enLang = fs_extra_1.default.readJSONSync(path_1.default.resolve(process.cwd(), "_locales/en.json"));
9
+ const zhLang = fs_extra_1.default.readJSONSync(path_1.default.resolve(process.cwd(), "_locales/mf/zh.json"));
10
+ const enLang = fs_extra_1.default.readJSONSync(path_1.default.resolve(process.cwd(), "_locales/mf/en.json"));
11
11
  const nameProcesser2 = (name) => {
12
12
  const [_, key] = name.split(".");
13
13
  return [zhLang[key] || name, enLang[key] || name];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-utils",
3
- "version": "2.3.0",
3
+ "version": "3.0.0-beta.3",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",