You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/vue-i18n-core/src/i18n.ts
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -752,6 +752,29 @@ export function useI18n<
752
752
>
753
753
}
754
754
755
+
/**
756
+
* Cast to VueI18n legacy compatible type
757
+
*
758
+
* @remarks
759
+
* This API is provided only with [vue-i18n-bridge](https://vue-i18n.intlify.dev/guide/migration/ways.html#what-is-vue-i18n-bridge).
760
+
*
761
+
* The purpose of this function is to convert an {@link I18n} instance created with {@link createI18n | createI18n(legacy: true)} into a `[email protected]` compatible instance of `new VueI18n` in a TypeScript environment.
762
+
*
763
+
* @param i18n - An instance of {@link I18n}
764
+
* @returns A i18n instance which is casted to {@link VueI18n} type
0 commit comments