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
when using useNuxtApp().$i18n.locale, the returned type is string & WritableComputedRef<string> which can be very confusing for developers and even linters as it does not warns that it is an object when migrating from i18n vue 2, Nuxt 2 or bridge.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
This issue is related to vue-i18n v9.
vue-i18n v9 has a Legacy API (options API) style and a composition API style.
vue-i18n should support the type inference for both API styles.
ref: intlify/vue-i18n#1113 (comment)
Environment
Reproduction
Describe the bug
when using
useNuxtApp().$i18n.locale
, the returned type isstring & WritableComputedRef<string>
which can be very confusing for developers and even linters as it does not warns that it is an object when migrating from i18n vue 2, Nuxt 2 or bridge.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: