Answer the question
In order to leave comments, you need to log in
How to substitute values instead of words in i18n-2?
In ejs I do this <%- __(`Up`) %> Everything works
Here is how to do it in js
Sample code
if (me) {
meTab = <li>
<Link to="/me" activeClassName={styles.active}>{me.nickname || 'Тут текст перевода'}</Link>
</li>
} else {
meTab = <li><a href="javascript:void(0)" onClick={showSign}>Тут текст перевода</a></li>
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question