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

Allow components interpolation #37

Closed
alanwillms opened this issue Jun 24, 2016 · 3 comments
Closed

Allow components interpolation #37

alanwillms opened this issue Jun 24, 2016 · 3 comments

Comments

@alanwillms
Copy link

It would be helpful if we could use components as named arguments.

Suppose I have this message source:

{post: {posted_by: 'Posted by {author}'}}

And I want to display a tag with bindings or any kind of component in the place of {author}:

Posted by <a class="foo" v-link="{name: 'author', params: {id: post.author.id}}">Foo</a>

Currently, there is no way to do something like this:

{{{ $t('post.posted_by', {author: myComponent}) }}}
@alanwillms
Copy link
Author

While this does not exist, do you suggest any alternative @kazupon ?

@kingcarter
Copy link

+1
I also hava the demand.
It would be helpful if vue-i18n support the grammar.

@kazupon
Copy link
Owner

kazupon commented May 11, 2017

v7.0.0-beta.1 release out!
please check it! :)
https://github.com/kazupon/vue-i18n/releases/tag/v7.0.0-beta.1

@kazupon kazupon closed this as completed May 11, 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