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

Support "lang" attr for i18n tag #52

Closed
antfu opened this issue Jul 19, 2019 · 1 comment · Fixed by GrabarzUndPartner/gp-vue-boilerplate#219
Closed

Support "lang" attr for i18n tag #52

antfu opened this issue Jul 19, 2019 · 1 comment · Fixed by GrabarzUndPartner/gp-vue-boilerplate#219

Comments

@antfu
Copy link
Member

antfu commented Jul 19, 2019

I am working on a vscode extension for vue-i18n called vue-i18n-ally and trying to add support for SFC.

The current approach for YAML support in the document is not ideal for static analyze. Would it be possible to add support for lang attr just like script in SFC (which can also support more preprocessors)?

For example:

<i18n lang='yaml'>
en:
  hello: Hello World
</i18n>

<i18n lang='json5'>
{
  // comments
  ja: {
    hello: 'こんにちは、世界!',
  }
}
</i18n>

This issue is relative to #10, #31 and conflicted with #11

@kazupon kazupon added this to In progress in OSS Focus1 Jul 19, 2019
@antfu
Copy link
Member Author

antfu commented Jul 22, 2019

@kazupon Thanks for such a quick and awesome work!

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

Successfully merging a pull request may close this issue.

2 participants