Skip to content
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

Avoid using reserved keywords in expression "continue" in a t function #24

Closed
barnabas-szekeres opened this issue Mar 3, 2016 · 2 comments
Milestone

Comments

@barnabas-szekeres
Copy link

When i want to write t function in a template i get this warning. It caused by the "continue" word in a string. Is it normal? :)

Example:
In the template file: {{ $t('continue-with-new-account') }}

Then the console says:
[Vue warn]: Avoid using reserved keywords in expression: 'continue-with-new-account'

@barnabas-szekeres barnabas-szekeres changed the title Avoid using reserved keywords in expression Avoid using reserved keywords in expression "continue" in a t function Mar 3, 2016
@flaird
Copy link

flaird commented Mar 8, 2016

Try _ instead of -. Think javascript interprets it as a subtraction, but I'm not sure.

@kazupon
Copy link
Owner

kazupon commented Apr 17, 2016

This issue is occuring to use the parser of Vue.
In future, I'll consider to improve. 😺

If you want to avoid the this issue, Try _ instead of -

@kazupon kazupon added this to the 3.1 milestone Apr 18, 2016
@kazupon kazupon closed this as completed in d0a415f May 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants