@nocobase/plugin-localization 2.0.16 → 2.0.17

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.
@@ -11,16 +11,16 @@ module.exports = {
11
11
  "@ant-design/icons": "5.6.1",
12
12
  "@formily/core": "2.3.7",
13
13
  "@formily/react": "2.3.7",
14
- "@nocobase/client": "2.0.16",
14
+ "@nocobase/client": "2.0.17",
15
15
  "ahooks": "3.7.8",
16
16
  "antd": "5.24.2",
17
17
  "react": "18.2.0",
18
- "@nocobase/flow-engine": "2.0.16",
18
+ "@nocobase/flow-engine": "2.0.17",
19
19
  "lodash": "4.17.21",
20
- "@nocobase/database": "2.0.16",
21
- "@nocobase/server": "2.0.16",
22
- "@nocobase/utils": "2.0.16",
23
- "@nocobase/cache": "2.0.16",
24
- "@nocobase/actions": "2.0.16",
20
+ "@nocobase/database": "2.0.17",
21
+ "@nocobase/server": "2.0.17",
22
+ "@nocobase/utils": "2.0.17",
23
+ "@nocobase/cache": "2.0.17",
24
+ "@nocobase/actions": "2.0.17",
25
25
  "react-i18next": "11.18.6"
26
26
  };
@@ -105,6 +105,10 @@ class PluginLocalizationServer extends import_server.Plugin {
105
105
  name: `pm.${this.name}.localization`,
106
106
  actions: ["localization:*", "localizationTexts:*", "localizationTranslations:*"]
107
107
  });
108
+ this.app.acl.registerSnippet({
109
+ name: "ui.localization",
110
+ actions: ["localizationTexts:missing"]
111
+ });
108
112
  this.app.localeManager.registerResourceStorer("plugin-localization", {
109
113
  getResources: (lang) => this.resources.getResources(lang),
110
114
  reset: () => this.resources.reset()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-localization",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "main": "dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/localization-management",
6
6
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/localization-management",
@@ -25,5 +25,5 @@
25
25
  "description": "Allows to manage localization resources of the application.",
26
26
  "description.ru-RU": "Позволяет управлять ресурсами локализации приложения.",
27
27
  "description.zh-CN": "支持管理应用程序的本地化资源。",
28
- "gitHead": "cd1b339b28eadbefde73535f945ef7cc3655d727"
28
+ "gitHead": "3bf26e8a60d136a92fb0f6bba7eb621df48f03b6"
29
29
  }