vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.93k stars 6.97k forks source link

[Feature Request] Support i18next #14817

Open SassNinja opened 2 years ago

SassNinja commented 2 years ago

Problem to solve

If I see this correctly, vuetify currently only supports vue-i18n and not i18next. https://next.vuetifyjs.com/en/features/internationalization/#vue-i18n

Since vue-i18n doesn't seem to meet my requirements, I'd like to stay with i18next and be able to combine it with vuetify.

Proposed solution

Vuetify should support i18next. I think this probably means adding an vue-i18next adapter here: https://github.com/vuetifyjs/vuetify/tree/next/packages/vuetify/src/locale/adapters

marcpaskell commented 1 year ago

Just migrating a project over to V3 and it looks like i18n is now breaking the vuetify typing.

new VueI18n is now createI18n so the types are slightly out of whack

TS2322: Type 'I18n<{}, {}, {}, string, true>' is not assignable to type 'I18n<{}, {}, {}, string, false>'.   
vue-i18n.d.ts(24, 5): The expected type comes from property 'i18n' which is declared here on type 'VueI18nAdapterParams'
KaelWD commented 1 year ago

@marcpaskell #16848

michi7801 commented 1 year ago

Any updates to this? Would love to see this feature.