U
U
underwater2018-07-17 13:12:51
Angular
underwater, 2018-07-17 13:12:51

How to connect localizations?

5b4dbfab4143b743246695.png

<p class="parent language">
        <span>Язык </span>
        <select id="language" name="language">
          <option value="ru">Русский</option>
          <option value="en">Английский</option>
          <option value="vie">Вьетнамский</option>
          <option value="zho">Китайский</option>
        </select>
      </p>

Added select, inside which options for choosing languages. Plus there are 4 json localizations. Found the documentation on the localization package in Angular. https
://github.com/robisim74/angular-l10n/tree/ang...
https://robisim74.github.io/angular-l10n/
but I can't figure out how to connect these 4 files to my select.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexaZem, 2018-07-17
@dyfran

I use ngx-translate on the project, it's quite convenient.
Turnip/docs:
https://github.com/ngx-translate/core
Tutorial:
https://medium.com/letsboot/translate-angular-4-ap...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question