Skip to content

Commit b78c86e

Browse files
author
Gertjan Reynaert
committed
docs(Usage): improve usage docs, add basic contributing.md
1 parent 2ecbd75 commit b78c86e

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,21 @@
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
```
2836
npm install --save-dev react-intl-translations-manager
2937
```
3038

31-
## Usage
39+
## Setup
3240
### Basic
3341

3442
Since 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
6674
Build your own translationManager based on the core of this package, or it's
6775
exposed 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

contributing.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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)

0 commit comments

Comments
 (0)