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

The module does work with multiple placeholder in text #393

Open
aidonsnous opened this issue Mar 2, 2019 · 0 comments
Open

The module does work with multiple placeholder in text #393

aidonsnous opened this issue Mar 2, 2019 · 0 comments

Comments

@aidonsnous
Copy link

I have the following text :

"isgood":"{{gender}} is a good person. Tell {{personnalnoun}}."

and I am calling the function that translate in the following format :

 let params = {};
            params['gender'] = gender=='male'?t(lang,'He'):t(lang,'She');
            params['personnalnoun'] = gender=='male'?t(lang,'him'):t(lang,'her');
           console.log(t(lang,'isgood',params)); //

THis is giving the following output :
He is a good person. Tell He.
Instead of :
He is a good person. Tell him.

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

1 participant