Having messages in seperate JSON files. #1232
codeflorist
started this conversation in
General
Replies: 1 comment 1 reply
-
Any update? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All docs of this library and the nuxt module show the defining of the translation messages either inside the
VueI18n.createI18n
call (put inside amain.js
) or the nuxt config filenuxt.config.js
.This is in my humble opinion IN NO WAY recommendable. Translation messages need to be put inside seperate JSON files inside a
locales
directory. About every other translation library does it that way. It's the industry standard to do it this way.Why are the docs of
vue-i18n
and@nuxtjs/i18n
propagating everywhere to put translation messages inmain.js
files - or even worse - inside config files?!Heck - i cannot even find ANY basic information on the docs pages on how to use seperate JSON-files. Where can i find that info?
Beta Was this translation helpful? Give feedback.
All reactions