Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Allow components interpolation #37

Description

@alanwillms

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}) }}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions