Skip to content

Problem with Component Interpolation and V18n #241

@FSchubert92

Description

@FSchubert92

We have an Issue concerning the message compiler.
When trying to use v18n component interpolation with VueJs this does not work correctly due to the compile function which is returning a single string.
the function returns an [object Object] which shows us that r has elements of VNodes of Vue.
We were able to fix the problem by using the following line in the message compiler, which returns an array which we can then use.
return 'function(d) { return [' + (r.join(', ') || '""') + ']; }';
Is it possible to add a configuration which allows us to determine whether we get a string or an array back by the function?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions