@nocobase/plugin-localization 2.0.16 → 2.0.18
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/dist/externalVersion.js +7 -7
- package/dist/server/plugin.js +4 -0
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -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.
|
|
14
|
+
"@nocobase/client": "2.0.18",
|
|
15
15
|
"ahooks": "3.7.8",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"react": "18.2.0",
|
|
18
|
-
"@nocobase/flow-engine": "2.0.
|
|
18
|
+
"@nocobase/flow-engine": "2.0.18",
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
|
-
"@nocobase/database": "2.0.
|
|
21
|
-
"@nocobase/server": "2.0.
|
|
22
|
-
"@nocobase/utils": "2.0.
|
|
23
|
-
"@nocobase/cache": "2.0.
|
|
24
|
-
"@nocobase/actions": "2.0.
|
|
20
|
+
"@nocobase/database": "2.0.18",
|
|
21
|
+
"@nocobase/server": "2.0.18",
|
|
22
|
+
"@nocobase/utils": "2.0.18",
|
|
23
|
+
"@nocobase/cache": "2.0.18",
|
|
24
|
+
"@nocobase/actions": "2.0.18",
|
|
25
25
|
"react-i18next": "11.18.6"
|
|
26
26
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "2.0.18",
|
|
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": "
|
|
28
|
+
"gitHead": "f93082fd2c15618fe85e697a9cdd90614371732e"
|
|
29
29
|
}
|