Skip to content

Is it possible to get a value from a language via parameter of t()? #100

Answered by jarda-svoboda
kamerat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kamerat.
Yes, it is. That's what is $l born for..)

{$l('locale', 'key', {/* props */})}

Don't forget to load all needed language mutations using loadTranslations method.

You can find an example here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jarda-svoboda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants