@axewo/fin-locale 0.0.1 → 2.0.0

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/README.md CHANGED
@@ -1,26 +1,26 @@
1
- # @axewo/fin-locale
2
-
3
- > Fin UI 国际化多语言语言包
4
-
5
- ## 📦 安装
6
-
7
- ```bash
8
- # 使用 pnpm
9
- pnpm add @axewo/fin-locale
10
-
11
- # 使用 npm
12
- npm install @axewo/fin-locale
13
-
14
- # 使用 yarn
15
- yarn add @axewo/fin-locale
16
- ```
17
-
18
- ## 🚀 使用说明
19
-
20
- ```typescript
21
- import { ... } from '@axewo/fin-locale'
22
- ```
23
-
24
- ## 📄 License
25
-
26
- [MIT](./LICENSE)
1
+ # @axewo/fin-locale
2
+
3
+ > Fin UI 国际化多语言语言包
4
+
5
+ ## 📦 安装
6
+
7
+ ```bash
8
+ # 使用 pnpm
9
+ pnpm add @axewo/fin-locale
10
+
11
+ # 使用 npm
12
+ npm install @axewo/fin-locale
13
+
14
+ # 使用 yarn
15
+ yarn add @axewo/fin-locale
16
+ ```
17
+
18
+ ## 🚀 使用说明
19
+
20
+ ```typescript
21
+ import { ... } from '@axewo/fin-locale'
22
+ ```
23
+
24
+ ## 📄 License
25
+
26
+ [MIT](./LICENSE)
@@ -0,0 +1,13 @@
1
+ import { I18nOptions, I18n, Composer } from 'vue-i18n';
2
+ /**
3
+ * 创建财务组件库国际化实例
4
+ */
5
+ export declare function createFinI18n(options?: Partial<I18nOptions>): I18n;
6
+ /**
7
+ * 获取翻译函数的 Composable
8
+ * 在组件中使用:const { t } = useFinLocale()
9
+ */
10
+ export declare function useFinLocale(): {
11
+ t: Composer['t'];
12
+ };
13
+ //# sourceMappingURL=create-i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-i18n.d.ts","sourceRoot":"","sources":["../../src/create-i18n.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAuB,KAAK,WAAW,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAG1F;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAWlE;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI;IAAE,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;CAAE,CAGnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axewo/fin-locale",
3
- "version": "0.0.1",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",