Unable to obtain the locales file content when using multiple files for same language in Vue 3 using vueI18n and intlify? #1682
Unanswered
Aravinda93
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use locale files in my Nuxt 3-based application and everything works fine when I am using the single
en.yml
file but if I try to add another file for the same language then the contents from that new file are not extracted only the main file works fine. I am using theintlify
andvueI18n
for internationalization.I have a
locales/en
folder which contains the locale filesen.yml
anden-extended.yml
. I would like to obtain the content into my Nu 3 application but am unable to do so using the vue18n foren-extended.yml
file content buten.yml
file content works fine.Following is the config settings from
nuxt.config.js
:I tried adding additional parameters to it using the
en-extended
but its not working. I have placed the file and variables are present but still not working.Following is the way I am accessing the date:
I can see on my webpage that I am able to get:
"default.mainMessage"
but unable to get the"en-extended.default.extendedMessage"
It just displays the same variable nameen-extended.default.extendedMessage
rather than the actual value assigned inen-extended.yml
Beta Was this translation helpful? Give feedback.
All reactions