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

[feature request] <i18n> tag #127

Closed
lanyizi opened this issue Apr 7, 2021 · 3 comments
Closed

[feature request] <i18n> tag #127

lanyizi opened this issue Apr 7, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@lanyizi
Copy link

lanyizi commented Apr 7, 2021

Thanks a lot for making this extension!
Could you also add syntax support for <i18n>?
(normally it just contains a JSON: https://vue-i18n.intlify.dev/guide/advanced/sfc.html)

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Apr 7, 2021

Thanks for the suggestion! It may support by plugin mode in future, because this is not a part of vue core. And will be nice if we have type-checking to $t(...) by <i18n> json. (like what <style module> doing now)

Plugin mode needed lot of work, and I maintain this project in my spare time, so don't expect it to come too soon. 😅

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Apr 7, 2021
@kazupon
Copy link
Member

kazupon commented May 16, 2021

Hi!
I'm vue-i18n author.

I’m improving vue-i18n's typescript support in this issue now.
This issue completion of the i18n resource keys and allows typesafe support for i18n resources.
intlify/vue-i18n-next#489
but, <i18n> custom block needs Volar support.

I hope you will support the plugin mode for custom blocks. :)

@johnsoncodehk
Copy link
Member

Supported lang="json" in 0.25.5. (Use <i18n lang="json">)

Please track #185 for Plugin API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants