File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 2222[ npm-license-image ] : https://img.shields.io/npm/l/react-intl-translations-manager.svg
2323[ npm-license-url ] : https://www.npmjs.com/package/react-intl-translations-manager
2424
25+ React-intl-translations-manager will help you in managing your translations.
26+ Hereby it will give you the current status of your translation, telling you what
27+ duplicate keys you have, what messages aren't translated yet, what messages were
28+ added/deleted since the last time you checked.
29+
30+ You'll still need to update the translations manually in your json files, but
31+ now you know what messages you still need to update.
32+
2533## Installing
2634
2735```
2836npm install --save-dev react-intl-translations-manager
2937```
3038
31- ## Usage
39+ ## Setup
3240### Basic
3341
3442Since you need the ` babel-plugin-react-intl ` to extract the messages, I'll assume you're using babel in your project.
@@ -66,6 +74,17 @@ npm run manage:translations
6674Build your own translationManager based on the core of this package, or it's
6775exposed helper methods.
6876
77+ ## Usage
78+
79+ Now you can check the status of your translations by just running the script. Then
80+ you can change the missing translations in the translation files.
81+
82+ If you encounter messages that are identical in translation in a certain
83+ language as in your default language (example: Dashboard (english) = Dashboard (dutch)),
84+ then you can whitelist the translation-key in the language specific whitelist
85+ file. This will prevent the message from showing up as untranslated when
86+ checking the translations status.
87+
6988## API
7089
7190### manageTranslations
Original file line number Diff line number Diff line change 1+ # Contributing
2+
3+ First of all: thanks for considering contributing to this project!
4+
5+ Here are the steps required for contributing:
6+
7+ 1 . Make sure your branch is up to date with the current master
8+ 2 . Install latest dependencies with
9+ > npm run clean: install
10+
11+ 3 . Develop your feature/bug fix
12+ 4 . Create tests for as much as possible
13+ 5 . Make sure eslint errors are fixed, if eslint errors don't show up in your editor you can always check them with
14+ > npm run eslint
15+
16+ 6 . Commit your changes according to the conventional changelog commit convention we use
17+ 7 . Create a pull request
18+
19+ (If you encounter additional steps during your contribution, do not hesitate to update this document)
You can’t perform that action at this time.
0 commit comments