1.4.3 • Published 6 years ago
translations-generator v1.4.3
Installation
Install package using npm or yarn.
npm install translations-generator --save-devor
yarn add translations-generator -DAdd
translations.config.jsonfile to root of your directory.{ ext: "js", // "ts", "js" or "json" (extention of translations), path: "src/translations", // path to folder with translations pattern: "translatations_", // (optional) specify pattern to use "en" instead of "translatations_en" alias: { "en": "translatations_en", // (optional) you can use "en" to specify translation } }
Usage
Run command for adding translation to files
translations-generatorRun command for removing translation from files
translations-generator --remove-labelExample
.
├── src
│ ├──translations
│ ├── translation_en.js
│ ├── translation_de.js
│ ├── translation_nl.js
│ │...
│ ├──components
│ ├──....
├── README.md
├── translations.config.json
│... // translation_en.js
export default {
"title": "Title",
};Run translations-generator
You'll see
Enter translations you want to use: (empty is all)
Enter a label: description
Enter a text: Description
Output
// translation_en.js
export default {
"title": "Title",
"description": "Description",
};Generated files are ready! 🎉
CONTRIBUTING
Feel free contribute to the project. More information you can find in CONTRIBUTING file.
License
MIT – See LICENSE file.
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago