@tachybase/plugin-i18n-editor 1.6.0 → 1.6.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.
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.6.0",
4
- "@tachybase/schema": "1.3.52",
5
- "@ant-design/icons": "5.6.1",
3
+ "@tachybase/client": "1.6.1",
4
+ "@tachybase/schema": "1.6.0-alpha.9",
5
+ "@ant-design/icons": "6.1.0",
6
6
  "ahooks": "3.9.0",
7
7
  "antd": "5.22.5",
8
- "@tachybase/module-ui-schema": "1.6.0",
9
- "@tego/server": "1.3.52",
8
+ "@tachybase/module-ui-schema": "1.6.1",
9
+ "@tego/server": "1.6.0-alpha.9",
10
10
  "react-i18next": "16.2.1"
11
11
  };
@@ -1 +1 @@
1
- {"name":"deepmerge","description":"A library for deep (recursive) merging of Javascript objects","keywords":["merge","deep","extend","copy","clone","recursive"],"version":"4.3.1","homepage":"https://github.com/TehShrike/deepmerge","repository":{"type":"git","url":"git://github.com/TehShrike/deepmerge.git"},"main":"dist/cjs.js","engines":{"node":">=0.10.0"},"scripts":{"build":"rollup -c","test":"npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript","test:typescript":"tsc --noEmit test/typescript.ts && ts-node test/typescript.ts","size":"npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"},"devDependencies":{"@types/node":"^8.10.54","is-mergeable-object":"1.1.0","is-plain-object":"^5.0.0","jsmd":"^1.0.2","rollup":"^1.23.1","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","tape":"^4.11.0","ts-node":"7.0.1","typescript":"=2.2.2","uglify-js":"^3.6.1"},"license":"MIT","_lastModified":"2025-11-20T08:14:15.404Z"}
1
+ {"name":"deepmerge","description":"A library for deep (recursive) merging of Javascript objects","keywords":["merge","deep","extend","copy","clone","recursive"],"version":"4.3.1","homepage":"https://github.com/TehShrike/deepmerge","repository":{"type":"git","url":"git://github.com/TehShrike/deepmerge.git"},"main":"dist/cjs.js","engines":{"node":">=0.10.0"},"scripts":{"build":"rollup -c","test":"npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript","test:typescript":"tsc --noEmit test/typescript.ts && ts-node test/typescript.ts","size":"npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"},"devDependencies":{"@types/node":"^8.10.54","is-mergeable-object":"1.1.0","is-plain-object":"^5.0.0","jsmd":"^1.0.2","rollup":"^1.23.1","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","tape":"^4.11.0","ts-node":"7.0.1","typescript":"=2.2.2","uglify-js":"^3.6.1"},"license":"MIT","_lastModified":"2025-12-05T07:15:20.015Z"}
@@ -39,11 +39,11 @@ var import_constans = require("../constans");
39
39
  var import_plugin = __toESM(require("../plugin"));
40
40
  var import_utils = require("../utils");
41
41
  const getResourcesInstance = async (ctx) => {
42
- const plugin = ctx.app.getPlugin(import_plugin.default);
42
+ const plugin = ctx.tego.getPlugin(import_plugin.default);
43
43
  return plugin.resources;
44
44
  };
45
45
  const getResources = async (ctx) => {
46
- const resources = await ctx.app.localeManager.getCacheResources(ctx.get("X-Locale") || "en-US");
46
+ const resources = await ctx.tego.localeManager.getCacheResources(ctx.get("X-Locale") || "en-US");
47
47
  return { ...resources };
48
48
  };
49
49
  const getUISchemas = async (db) => {
@@ -93,8 +93,8 @@ const list = async (ctx, next) => {
93
93
  limit: pageSize
94
94
  };
95
95
  const [rows, count] = await listText(ctx.db, { module: module2, keyword, hasTranslation, locale, options });
96
- const cache = ctx.app.cache;
97
- const pm = ctx.app.pm;
96
+ const cache = ctx.tego.cache;
97
+ const pm = ctx.tego.pm;
98
98
  const plugins = await cache.wrap(`lm-plugins:${locale}`, () => pm.list({ locale }));
99
99
  const modules = [
100
100
  ...import_constans.EXTEND_MODULES,
@@ -164,8 +164,8 @@ const get = async (ctx, next) => {
164
164
  if (!row) {
165
165
  ctx.throw(404, ctx.t("Record not found"));
166
166
  }
167
- const cache = ctx.app.cache;
168
- const pm = ctx.app.pm;
167
+ const cache = ctx.tego.cache;
168
+ const pm = ctx.tego.pm;
169
169
  const plugins = await cache.wrap(`lm-plugins:${locale}`, () => pm.list({ locale }));
170
170
  const modules = [
171
171
  ...import_constans.EXTEND_MODULES,
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-i18n-editor",
3
3
  "displayName": "Localization",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "description": "Allows to manage localization resources of the application.",
6
6
  "keywords": [
7
7
  "System management"
@@ -10,18 +10,18 @@
10
10
  "main": "dist/server/index.js",
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@ant-design/icons": "^5.6.1",
14
- "@tachybase/schema": "1.3.52",
15
- "@tachybase/test": "1.3.52",
16
- "@tego/client": "1.3.52",
17
- "@tego/server": "1.3.52",
13
+ "@ant-design/icons": "^6.1.0",
14
+ "@tachybase/schema": "1.6.0-alpha.9",
15
+ "@tachybase/test": "1.6.0-alpha.9",
16
+ "@tego/client": "1.6.0-alpha.9",
17
+ "@tego/server": "1.6.0-alpha.9",
18
18
  "ahooks": "^3.9.0",
19
19
  "antd": "5.22.5",
20
20
  "deepmerge": "^4.3.1",
21
21
  "react-i18next": "16.2.1",
22
- "@tachybase/client": "1.6.0",
23
- "@tachybase/module-web": "1.6.0",
24
- "@tachybase/module-ui-schema": "1.6.0"
22
+ "@tachybase/client": "1.6.1",
23
+ "@tachybase/module-ui-schema": "1.6.1",
24
+ "@tachybase/module-web": "1.6.1"
25
25
  },
26
26
  "description.zh-CN": "支持管理应用程序的本地化资源。",
27
27
  "displayName.zh-CN": "本地化",