This repo manages the standalone React frontend for the Vigor stablecoin app. (The frontend integrated into the eosDAC memberclient can be found here.)
The
master
branch acts as the stablebranch that will be deployed and any feature development should branch offdev
.
This project was bootstrapped with Create React App.
Local development:
yarn
yarn start
Production build:
yarn
yarn build
This project uses react-intl for internationaliztion with react-intl.macro for automatically extracting and updating translation files.
More Info
Every text that should be translated needs to be wrapped in a FormattedMessage
imported from react-intl.macro
for the automatic string extraction to work.
import { FormattedMessage } from 'react-intl.macro';
<FormattedMessage id="uniqueId" defaultMessage="Default message in English" />
The JSON translation files can be found in src/modules/i18n/translations
.
To extract strings and update these translation files with new IDs you run this script:
yarn run i18n:extract
You can then pass these translation files to a translator.