@elementspanel/epanel-plugin-i18n 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementspanel/epanel-plugin-i18n",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Panel translations and plugin localization.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Csituka_D <694428809@qq.com> (https://github.com/JessDaodao)",
@@ -36,17 +36,21 @@
36
36
  "frontendImmediate": true,
37
37
  "frontendRequired": true,
38
38
  "description": "Panel translations and plugin localization.",
39
+ "frontendExports": {
40
+ ".": "frontend/exports/index.js"
41
+ },
39
42
  "styles": [],
43
+ "frontendApi": 1,
44
+ "frontendImports": [
45
+ "@elements-panel/sdk",
46
+ "cordis",
47
+ "cosmokit",
48
+ "vue",
49
+ "vue-i18n"
50
+ ],
40
51
  "directory": "panel",
41
52
  "folder": "i18n",
42
- "frontendAssets": [
43
- "assets/_elements-sdk_cordis-e3bebc89.js",
44
- "assets/_elements-sdk_cosmokit-e4842f5c.js",
45
- "assets/context-3f0c5968.js",
46
- "assets/htmlparser2-bcb8f9db.js",
47
- "assets/i18n-0c4a452a.js",
48
- "assets/vue-08f0e982.js"
49
- ]
53
+ "frontendAssets": []
50
54
  },
51
55
  "daemon": {
52
56
  "priority": -10000,
@@ -0,0 +1 @@
1
+ import{ctx as r}from"@elements-panel/sdk";const a="LANGUAGE";function i(n){return n?n.trim().replace(/-/g,"_").toLowerCase():"en_us"}function t(){const n=r.get("i18n");if(!n)throw new Error('Panel frontend plugin "i18n" is not loaded.');return n}function g(){return t().instance}function s(){return t().supportedLanguages}function c(){return t().getSupportLanguages()}function p(n){return t().searchSupportLanguage(n)}function f(n,e=!0){t().setLanguage(n,e)}function L(){return t().getCurrentLang()}function d(){return t().isCN()}function E(){return t().isEN()}function u(...n){return t().translate(...n)}const N=u;export{u as $t,a as LANGUAGE_KEY,L as getCurrentLang,g as getI18nInstance,c as getSupportLanguages,s as getSupportedLanguageOptions,d as isCN,E as isEN,p as searchSupportLanguage,f as setLanguage,N as t,i as toStandardLang};