@i18n-micro/vue 2.0.1 → 2.1.1

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/index.d.cts CHANGED
@@ -25,6 +25,7 @@ import { PublicProps } from 'vue';
25
25
  import { Ref } from 'vue';
26
26
  import { RendererElement } from 'vue';
27
27
  import { RendererNode } from 'vue';
28
+ import { TranslateParams } from '@i18n-micro/types';
28
29
  import { TranslationKey } from '@i18n-micro/types';
29
30
  import { Translations } from '@i18n-micro/types';
30
31
  import { TranslationStorage } from '@i18n-micro/core';
@@ -409,8 +410,8 @@ export declare function useI18n(options?: UseI18nOptions): {
409
410
  localeRoute: (to: I18nRouteTarget, localeCode?: string) => I18nRouteTarget;
410
411
  localePath: (to: I18nRouteTarget, locale?: string) => string;
411
412
  switchLocale: (newLocale: string) => void;
412
- t: (key: TranslationKey, params?: Params, defaultValue?: string | null, routeContext?: unknown) => CleanTranslation;
413
- ts: (key: TranslationKey, params?: Params, defaultValue?: string, routeContext?: unknown) => string;
413
+ t: (key: TranslationKey, params?: TranslateParams, defaultValue?: string | null, routeContext?: unknown) => CleanTranslation;
414
+ ts: (key: TranslationKey, params?: TranslateParams, defaultValue?: string, routeContext?: unknown) => string;
414
415
  tc: (key: TranslationKey, count: number | Params, defaultValue?: string) => string;
415
416
  tn: {
416
417
  (value: number, options?: Intl.NumberFormatOptions): string;
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ import { PublicProps } from 'vue';
25
25
  import { Ref } from 'vue';
26
26
  import { RendererElement } from 'vue';
27
27
  import { RendererNode } from 'vue';
28
+ import { TranslateParams } from '@i18n-micro/types';
28
29
  import { TranslationKey } from '@i18n-micro/types';
29
30
  import { Translations } from '@i18n-micro/types';
30
31
  import { TranslationStorage } from '@i18n-micro/core';
@@ -409,8 +410,8 @@ export declare function useI18n(options?: UseI18nOptions): {
409
410
  localeRoute: (to: I18nRouteTarget, localeCode?: string) => I18nRouteTarget;
410
411
  localePath: (to: I18nRouteTarget, locale?: string) => string;
411
412
  switchLocale: (newLocale: string) => void;
412
- t: (key: TranslationKey, params?: Params, defaultValue?: string | null, routeContext?: unknown) => CleanTranslation;
413
- ts: (key: TranslationKey, params?: Params, defaultValue?: string, routeContext?: unknown) => string;
413
+ t: (key: TranslationKey, params?: TranslateParams, defaultValue?: string | null, routeContext?: unknown) => CleanTranslation;
414
+ ts: (key: TranslationKey, params?: TranslateParams, defaultValue?: string, routeContext?: unknown) => string;
414
415
  tc: (key: TranslationKey, count: number | Params, defaultValue?: string) => string;
415
416
  tn: {
416
417
  (value: number, options?: Intl.NumberFormatOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/vue",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "Vue 3 bindings for i18n-micro — composables, components, and routing helpers.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -62,9 +62,9 @@
62
62
  "access": "public"
63
63
  },
64
64
  "dependencies": {
65
- "@i18n-micro/core": "^2.0.1",
66
- "@i18n-micro/utils": "^2.0.1",
67
- "@i18n-micro/types": "^2.0.1"
65
+ "@i18n-micro/utils": "^2.1.1",
66
+ "@i18n-micro/core": "^2.1.0",
67
+ "@i18n-micro/types": "^2.1.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@vitejs/plugin-vue": "^6.0.10",