Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-intl-translations-manager

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intl-translations-manager - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

contributing.md

3

dist/createSingleMessagesFile.js

@@ -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 }));
};

4

package.json

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc