-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow configuration from app.config.ts
and extending (@nuxt/schema).AppConfig
#1985
Comments
I would try my hand at this |
Just to discuss the scope of it: It is desired, instead of the file export default defineI18nConfig(() => ({
legacy: false,
locale: 'en',
messages: {
fr: {
welcome: 'Bienvenue',
home: 'Accueil',
profile: 'Profil'
},
en: {
welcome: 'Welcome',
home: 'Homepage',
profile: 'Profile'
}
}
})) to be able to use the file export default defineAppConfig({
i18n: {
vueI18n: {
legacy: false,
locale: 'en',
messages: {
fr: {
welcome: 'Bienvenue',
home: 'Accueil',
profile: 'Profil'
},
en: {
welcome: 'Welcome',
home: 'Homepage',
profile: 'Profile'
}
}
}
}
}) Or have I overlooked something? |
That's about right, because We can probably flatten |
@ineshbose thanks for your quick answer! I could pack i18n.vueI18n directly into i18n, I just wanted to get some input on this first (especially with regard to other things that might be planned in the future). Exactly, I have already used defu in the first version, as this is also my preferred implementation. |
@TitusKirch nuxt i18n v8 rc was realsed 2 days ago. We should work this issue in nuxt i18n v9. |
Originally posted by @ineshbose in #1973 (comment)
The text was updated successfully, but these errors were encountered: