forked from shawnhooper/react-intl-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
22 lines (16 loc) · 900 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
REACT INTL EDITOR
A web based application to manage translations from JSON files generated by
the React Intl project.
For more information about the React Intl project, see https://github.com/yahoo/react-intl
INSTALLATION
1. Clone the project
2. Add a folder called intl/ in the project
3. Add a folder called intl/locales/ in the project
4. Add a folder called intl/messages/ in the project
5. Copy all the json files containing the messages extracted from the source code into the intl/messages/ folder.
6. Copy any json files containing translated strings into the intl/locales/ folder.
7. Run the project's index.php file to start.
ADDING A NEW LOCALE
To add a new locale to your project, create an empty JSON file in the intl/locales/ folder with the
name of the locale. For example /intl/en-CA.json for a Canadian English translation. This will
add the interface elements to the editor.