Simple #i18n for Create #react App with ttag
▻https://hackernoon.com/simple-i18n-for-create-react-app-with-ttag-4c2892343201?source=rss----3a
This article will describe how you can set up the translation process for Create React App with ttag in a few minutes with 5 simple steps.First of all, there are at least 4 reasons why you should choose ttag with CRA:Doesn’t require to execute eject.ttag is the framework agnostic solution that works everywhere where #javascript and babel works. Supports jsx out of the box.ttag works with gettext standard, that is very common to translators and can be integrated with any workflow and translation services like transifex, weblate e.t.cttag does not require you to use some ‘alien’ formatting rules like sprintf. You just simply use native javascript template literals for formatting like:tHello $ name
At the end of this tutorial, we will setup i18n for CRA starter page.Demo site — (...)