Replies: 1 comment 1 reply
-
Thanks for your feedback! 1.I agree, I have made some structural changes to the docs but I still want to review the content itself. The basic usage should show configuration purely using the module instead of configuring vue-i18n first, to prevent the confusing configuration issues you mention. Feel free to add more suggestions in this discussion #3171! 2.The main confusion is that We need the module configuration to be set inside |
Beta Was this translation helpful? Give feedback.
-
Hi 👋
Most of the time when I follow the documentation to setup a new project, I find the documentation confusing. I will go through each one and suggest my improvement:
1. Usage:
I understand that this is a very basic usage example but lets be honest, i don't think anyone will be using it this way.
link
my suggestion:
option 1: give the most common usage example
option 2: change usage to basic usage and add an additional page with common usage example
2. Confusing config:
Documentation suggests 2 places for config, We have a
i18n: {}
innuxt.config.ts
and another ini18n.config.ts
.Personally I get confused every single time because I think I can add all the i18n options of nuxt.config.ts in i18n.config.ts but then i realize I'm doing it wrong. this confusion should be common among devs that use lazy-load translations.
another reason that I want to place my i18n options in i18n.config.ts is that currently i18n is the longest object in my nuxt.config.ts and I prefer to have all these options in a seperate file. (30 languages = 30 line in nuxt config is not ideal)
Suggestion:
automatically set i18n options from ./i18n/i18n.config.ts something like this:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions