S
S
s_katala2018-01-30 22:10:32
Node.js
s_katala, 2018-01-30 22:10:32

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 question

Ask a Question

731 491 924 answers to any question