Replies: 4 comments
-
Maybe you can look into the related issue #1908 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @nobkd, Thanks for responding. I saw that issue yesterday. However, they refer to another topic. Have a nice day. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You also need to specify locales on the nuxt content config
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, thank you @misbahansori ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I hope you are well.
I successfully translated my application using json files, but I can't find how to translate markdown files.
For example, my json files are:
I use $('programs.message'), which works well.
$t('programs.message') // returns "Bonjour" or "Hello"
However, the $t doesn't work for markdown files.
For example, my markdown files are:
/content/en
-file1.md
-file2.md
/content/fr
-file1.md
-file2.md
Front matter as:
/en/file1.md
locale: 'en'
hello: 'hello'
/fr/file1.md
locale: 'fr'
hello: 'bonjour'
Index.vue as;
The problem is the $t or the t don't translate when using the language switcher.
Do you have any ideas on how to make this work?
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions