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 i18n be done in the compile stage #212

Closed
Kingwl opened this issue Aug 23, 2017 · 2 comments
Closed

Can i18n be done in the compile stage #212

Kingwl opened this issue Aug 23, 2017 · 2 comments

Comments

@Kingwl
Copy link

Kingwl commented Aug 23, 2017

vue & vue-i18n version

vue: all
vue-i18n: all

Reproduction Link

-

Steps to reproduce

-

What is Expected?

I have to do i18n at runtime and need to replace all the text
so can we insert a hook into compiler to use it translate the text?

What is actually happening?

We do not need to manually replace all the text

@Kingwl Kingwl changed the title Can i18n be done in the aot stage Can i18n be done in the compile stage Aug 23, 2017
@kazupon
Copy link
Owner

kazupon commented Aug 23, 2017

related #197

I'll sometime soon plan to support pre-translte optimaization with vue compiler hooks (translateNode,genCode, etc ...). 😉

@kazupon
Copy link
Owner

kazupon commented Sep 22, 2017

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