-
-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining Single File Component syntax with root messages #172
Comments
You need to define the |
The sample code above was pasted incorrectly; it should have been: /static/i18n/en.json
main.js
As mentioned in the original, without the I apologize for the red herring in the original post; I'd thought I double-checked it. |
Could you provide the minimum reproduction repo please? |
Should just be this: /static/i18n/en.json
main.js
Sample.vue
In case there's something I missed I created a demo project using the Vue CLI, which you can see running here. |
I was kicking the tires a bit and ran into an unexpected problem. It appears one cannot reference the root translation node from within an
<i18n>
block inside an SFC.main.js
Sample.vue
Without the
<i18n>
block,company-name
can be bound to:title
. Interestingly, both properties can be accessed from within acomputed
property as suggested in this helpful SO answer.The text was updated successfully, but these errors were encountered: