Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 320f13c

Browse files
4got10devSerhii Homeniuk
andauthored
feat: add number format function (#1)
Co-authored-by: Serhii Homeniuk <serhii.homeniuk@share-now.com>
1 parent 2b8b2ec commit 320f13c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-i18n-composable",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"main": "dist/index.js",
55
"module": "dist/index.m.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function createI18n(options?: VueI18n.I18nOptions) {
1313

1414
export function useI18n() {
1515
if (!i18nInstance)
16-
throw new Error('vue-i18n not initalized')
16+
throw new Error('vue-i18n not initialized')
1717

1818
const i18n = i18nInstance
1919

@@ -34,5 +34,6 @@ export function useI18n() {
3434
tc: vm.$tc.bind(vm),
3535
d: vm.$d.bind(vm),
3636
te: vm.$te.bind(vm),
37+
n: vm.$n.bind(vm),
3738
}
3839
}

0 commit comments

Comments
 (0)