-
-
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
Support scoped
style while translating string with HTML tags.
#75
Comments
Maybe another approach is to wrap |
Looks like can be indirectly solved by this new feature? http://vue-loader.vuejs.org/en/features/css-modules.html |
Even without CSS modules you can wrap the |
Close (say the below alternative) |
This was referenced Aug 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not an actual issue, but a feature request indeed.
Sometimes when we provide a piece of information, we would like to insert hyper links as well. For example:
Following code would make it i18n ready:
This looks good. But when we work with
<style scoped>
in *.vue, it won't apply the styles. Because all selectors extracted from<style scoped>
are restricted with a special attribute, which equals to the component's$options._scopeId
. So do all elements in the template.To deal with it, my current approach is like this:
Or one step further:
This is annoying:
$t
to inject_scopeId
.{_scopeId}
field for every tag in my i18n strings, too ugly.I'm wondering whether the scope id injection could be a built-in feature? Either with or without a switch.
The text was updated successfully, but these errors were encountered: