Modify the document title when the locale changes #1049
Unanswered
gefey397831
asked this question in
Q&A
Replies: 2 comments 3 replies
-
You can realize by using |
Beta Was this translation helpful? Give feedback.
2 replies
-
Found this discussion, having the same problem. Now my solution is https://stackoverflow.com/questions/36612847/how-can-i-bind-the-html-title-content-in-vuejs, by creating a component I could bind the t('Title') to the props. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for this great project!
I'm using Vue 3 + Vite + Vue I18n 9.
I want to modify the
<title>
and<html lang="">
inindex.html
when the locale changes.I used
{{ $t("message.title") }}
but it doesn't work (it works in.vue
files).{{ $t("message.title") }}
was rendered directly. What should I do? Thank you!Beta Was this translation helpful? Give feedback.
All reactions