Home
Eugen Rochko muokkasi tätä sivua 7 vuotta sitten

How to get started

Required: Node.js, Yarn

  1. yarn install
  2. yarn start

This will automatically open a browser window. Style changes will appear in-place, code changes will automatically reload page. If there are linting issues with your code, or errors, the terminal will tell you.

How to maintain translations

  1. yarn translate
  2. yarn manage:translations

This will show a list of untranslated strings, remove ones that are not used anymore, sort them alphabetically, etc. Do this before committing your translations into git.

How to add a new language

  1. Add language code to translationRunner.js
  2. Modify top of src/App.js to include locale-data for your language code
  3. Modify src/reducer.js to include your language code in supportedLanguages
  4. Modify src/LanguageSelector.js to add a dropdown option for your language with an appropriate flag emoji (look up flag emoji on emojipedia.org, find "code points", import the SVG file from Twemoji with those code points in the filename)

Tada!