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

Can i use vue-i18n in Single file component like this? #249

Closed
falstack opened this issue Oct 31, 2017 · 1 comment
Closed

Can i use vue-i18n in Single file component like this? #249

falstack opened this issue Oct 31, 2017 · 1 comment

Comments

@falstack
Copy link

// someFile.vue
<template>
  ...
</template>

<i18n lang="zh-CN" src='./zh-CN.json'></i18n>
<i18n lang="zh-TW" src='./zh-TW.json'></i18n>
<i18n lang="en" src='./en.json'></i18n>

<script>
export default {
  ...
}
</script>
@kazupon
Copy link
Owner

kazupon commented Nov 2, 2017

Unfortunately, the lang attribute can not support localized resources.
maybe, it's necessary to extend the custom-blocks of vue-loader(SFC).

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

2 participants