shahednasser / react-transifex-tutorial

Code for How to Internationalize (i18n) a React App with Transifex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code for How to Internationalize (i18n) a React App with Transifex

Code for How to Internationalize (i18n) a React App with Transifex Tutorial

Prerequisites

You need to create a Transifex account, create a project, and obtain native credentials. You should copy the secret and token for later usage.

Installation

After cloning this repository run the following command to install all dependencies:

npm install

Configurations

Copy .env.example to .env:

cp .env.example .env

And add your API token as the value for REACT_APP_TRANSIFEX_TOKEN.

Also, in package.json replace <TOKEN> and <SECRET> in the scripts push-translation and refresh-translation with your API token and secret.

Run Website

Run the following command to start website:

npm start

About

Code for How to Internationalize (i18n) a React App with Transifex


Languages

Language:JavaScript 56.1%Language:HTML 28.2%Language:CSS 15.3%Language:Shell 0.4%