All Projects → ngbox → translation-generator

ngbox / translation-generator

Licence: other
Generate translation files for your Angular project

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to translation-generator

laravel-translate
Generate translation files for Laravel using Google Translate
Stars: ✭ 22 (+29.41%)
Mutual labels:  i18n, localization, google-translate
L10ns
Internationalization workflow and formatting
Stars: ✭ 234 (+1276.47%)
Mutual labels:  i18n, localization
Lang.js
🎭 Laravel Translator class in JavaScript!
Stars: ✭ 232 (+1264.71%)
Mutual labels:  i18n, localization
React Native Globalize
Internationalization (i18n) for React Native
Stars: ✭ 246 (+1347.06%)
Mutual labels:  i18n, localization
msgtools
Tools for Developing Diagnostic Messages
Stars: ✭ 18 (+5.88%)
Mutual labels:  i18n, localization
Weblate
Web based localization tool with tight version control integration.
Stars: ✭ 2,719 (+15894.12%)
Mutual labels:  i18n, localization
Flutter translate
Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
Stars: ✭ 245 (+1341.18%)
Mutual labels:  i18n, localization
React Translated
A dead simple way to add complex translations (i18n) in a React (DOM/Native) project 🌎🌍🌏
Stars: ✭ 176 (+935.29%)
Mutual labels:  i18n, localization
ad localize
ADLocalize is a simple way to manage your localization files. Supported wording sources : CSVs and Google Sheets. Localization file generation available for iOS, Android, JSON (i18next), YAML and Java properties
Stars: ✭ 22 (+29.41%)
Mutual labels:  i18n, localization
angular-i18n-localization
An angular application with i18n and localization implemented.
Stars: ✭ 22 (+29.41%)
Mutual labels:  i18n, localization
android-localization-helper
A python script that helps you create strings.xml for all languages in different hierarchical folder(using Google Translation API)
Stars: ✭ 19 (+11.76%)
Mutual labels:  localization, google-translate
typesafe-i18n
A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.
Stars: ✭ 1,227 (+7117.65%)
Mutual labels:  i18n, localization
Linguist
Easy multilingual urls and redirection support for the Laravel framework
Stars: ✭ 188 (+1005.88%)
Mutual labels:  i18n, localization
Serge
Continuous localization platform
Stars: ✭ 212 (+1147.06%)
Mutual labels:  i18n, localization
Localize Router
An implementation of routes localisation for Angular
Stars: ✭ 177 (+941.18%)
Mutual labels:  i18n, localization
Ttag
📙 simple approach for javascript localization
Stars: ✭ 243 (+1329.41%)
Mutual labels:  i18n, localization
awesome-i18n
🌍 A curated list of i18n resources for all kind of languages and frameworks
Stars: ✭ 205 (+1105.88%)
Mutual labels:  i18n, localization
Es2015 I18n Tag
ES2015 template literal tag for i18n and l10n (translation and internationalization)
Stars: ✭ 171 (+905.88%)
Mutual labels:  i18n, localization
Node Gettext
A JavaScript implementation of gettext, a localization framework.
Stars: ✭ 175 (+929.41%)
Mutual labels:  i18n, localization
alternate
Plug and Phoenix helpers to localize your web app via the URL
Stars: ✭ 26 (+52.94%)
Mutual labels:  i18n, localization

Translation Generator

This library generates translation files based on previously translated files using Angular schematics, Google Translate, and Playwright. You can use it together with Transloco or ngx-translate.

A Note: The generator removes any HTML tags in the source before translating it. It will not modify the source file, but you will not find those tags in the generated translation.

Also a note: Factors like rate limits (applied by Google) or connection problems can interrupt the translation process. Please try again after a while and with smaller a translation file.

Installation

Run the following command in your terminal to install the package in your project:

npx ng add translation-generator

Alternatively, you can install the package directly:

npm install -D translation-generator

Usage

Run the following command in your terminal:

npx ng g translation-generator:json

The generator will prompt some questions. You may pass them as parameters:

npx ng g translation-generator:json <source JSON path> <to language> <from language> <left interpolation> <right interpolation>

Please find an example below:

npx ng g translation-generator:json src/assets/i18n/en.json fr en "<%" "%>"

You can also use command parameters by name to give them in a different order:

npx ng g translation-generator:json --from=en --to=fr --left="<%" --right="%>" --src=src/assets/i18n/en.json

The --left and --right parameters are optional and their default values are {{ and }} respectively. The --from parameter is also optional and the source language will be resolved from the source filename.

You can pass some of the arguments and answer the rest when prompted:

npx ng g translation-generator:json src/assets/i18n/en.json fr

...or...

npx ng g translation-generator:json --to=fr --src=src/assets/i18n/en.json

Leave anwsers blank if they are optional and you want to use the default values. Here is how that works:

translation-generator


Developed by NG Box

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].