react-intl-translations-manager
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -13,2 +13,4 @@ 'use strict'; | ||
var _mkdirp = require('mkdirp'); | ||
var _stringify = require('./stringify'); | ||
@@ -40,3 +42,4 @@ | ||
(0, _mkdirp.sync)(directory); | ||
(0, _fs.writeFileSync)(DIR, (0, _stringify2.default)(messages, { space: jsonSpaceIndentation, sortKeys: sortKeys })); | ||
}; |
@@ -54,3 +54,3 @@ { | ||
"eslint": "^2.7.0", | ||
"eslint-config-airbnb": "^6.2.0", | ||
"eslint-config-airbnb": "^7.0.0", | ||
"eslint-plugin-react": "^4.3.0", | ||
@@ -65,3 +65,3 @@ "mocha": "^2.4.5", | ||
}, | ||
"version": "3.0.1" | ||
"version": "3.1.0" | ||
} |
@@ -25,2 +25,10 @@ # React-intl-translations-manager | ||
React-intl-translations-manager will help you in managing your translations. | ||
Hereby it will give you the current status of your translation, telling you what | ||
duplicate keys you have, what messages aren't translated yet, what messages were | ||
added/deleted since the last time you checked. | ||
You'll still need to update the translations manually in your json files, but | ||
now you know what messages you still need to update. | ||
## Installing | ||
@@ -32,3 +40,3 @@ | ||
## Usage | ||
## Setup | ||
### Basic | ||
@@ -71,2 +79,13 @@ | ||
## Usage | ||
Now you can check the status of your translations by just running the script. Then | ||
you can change the missing translations in the translation files. | ||
If you encounter messages that are identical in translation in a certain | ||
language as in your default language (example: Dashboard (english) = Dashboard (dutch)), | ||
then you can whitelist the translation-key in the language specific whitelist | ||
file. This will prevent the message from showing up as untranslated when | ||
checking the translations status. | ||
## API | ||
@@ -73,0 +92,0 @@ |
import Path from 'path'; | ||
import { writeFileSync } from 'fs'; | ||
import { sync as mkdirpSync } from 'mkdirp'; | ||
import stringify from './stringify'; | ||
@@ -22,2 +23,3 @@ | ||
mkdirpSync(directory); | ||
writeFileSync( | ||
@@ -24,0 +26,0 @@ DIR, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58103
42
1178
313