ep-craft 0.1.5 → 0.1.7

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.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 国际化(i18n)语言包
3
+ *
4
+ * 直接从 ep-craft 引入 element-plus 的语言包,无需再单独依赖 element-plus 的路径。
5
+ *
6
+ * 使用方式:
7
+ * ```ts
8
+ * // 按需引入某个语言
9
+ * import { zhCn, en } from 'ep-craft/locale'
10
+ *
11
+ * import { EpConfigProvider } from 'ep-craft'
12
+ *
13
+ * // <ep-config-provider :locale="zhCn"> ... </ep-config-provider>
14
+ * ```
15
+ */
16
+ export * from 'element-plus/es/locale/index.mjs';
17
+ export type { Language, TranslatePair } from 'element-plus/es/locale/index.mjs';
@@ -0,0 +1 @@
1
+ export * from "element-plus/es/locale/index.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep-craft",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "A Vue 3 component library based on element-plus with ep- prefix",
5
5
  "type": "module",
6
6
  "main": "./dist/ep-craft.js",
@@ -15,6 +15,10 @@
15
15
  "import": "./dist/resolver.js",
16
16
  "types": "./dist/resolver.d.ts"
17
17
  },
18
+ "./locale": {
19
+ "import": "./dist/locale/index.js",
20
+ "types": "./dist/locale/index.d.ts"
21
+ },
18
22
  "./dist/index.css": "./dist/index.css",
19
23
  "./style.css": "./dist/index.css",
20
24
  "./theme-chalk/*": "./theme-chalk/*",