Gathering detailed insights and metrics for gulp-auto-translator
Gathering detailed insights and metrics for gulp-auto-translator
Gathering detailed insights and metrics for gulp-auto-translator
Gathering detailed insights and metrics for gulp-auto-translator
The Gulp Auto Translator helps you to resolve translation issues. Especially it will help developers who didn't plan project's internazalization before.
npm install gulp-auto-translator
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
36 Commits
2 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Dec 03, 2016
Latest Version
0.0.13
Package Id
gulp-auto-translator@0.0.13
Size
24.47 kB
NPM Version
2.11.3
Node Version
0.12.7
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Current version: 0.0.5
Supposing you have a project in which you haven't thought about internalization before this moment. And you need to make it right now! Well, you are in right place. Gulp auto translator (GAT) created to help resolve same issues. It let you to translate your project quickly and inexpensively. Let's begin.
First you should install gulp, of course if you don't have one yet.
npm instal gulp --save-dev
Second you need to install gulp-auto-translator and how you already guessed:
npm instal gulp-auto-translator --save-dev
Now we have all to start first translation. You need to create gulpfile.js in root directory of your project and create new task:
gulp.task('translate', function () {
return gulp.src('./examples/source/pascal.page.html')
.pipe(autoTranslator({
yandexApiKey:'trnsl.x.x.xxxxxxxxxxxxxxxxxx.xxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Yandex API Key
fromLanguage: "en", // Language of your project
replacement: '{{"#CODE#" | translate}}', // Replacement
fileNamePrefix: false, // I won't use file name prefix.
path: './examples/languages_pascal/', // Path to a directory in which will locate language files.
createNewFile: true, // true - create copy of current file, false - overwrite it
translate: {
"ruRU": "ru", // GAT will create new file (./examples/language_pascal/ruRU.json) with a translation by en-ru direction
"enUS": "en" // GAT will create new file (./examples/language_pascal/enUS.json)
}
}
));
});
Execute:
gulp translate
The Source file has contained this before changes:
<nav class="sidebar-nav">
<a class="sidebar-nav-item" href="/">Blog</a>
<a class="sidebar-nav-item" href="/about/">About</a>
<a class="sidebar-nav-item" href="/talks/">Talks</a>
<a class="sidebar-nav-item" href="https://github.com/PascalPrecht">GitHub</a>
<a class="sidebar-nav-item" href="https://twitter.com/PascalPrecht">Twitter</a>
</nav>
The new file will be contain a next:
<nav class="sidebar-nav">
<a class="sidebar-nav-item" href="/">{{"BLOG" | translate}}</a>
<a class="sidebar-nav-item" href="/about/">{{"ABOUT" | translate}}</a>
<a class="sidebar-nav-item" href="/talks/">{{"TALKS" | translate}}</a>
<a class="sidebar-nav-item" href="https://github.com/PascalPrecht">{{"GITHUB" | translate}}</a>
<a class="sidebar-nav-item" href="https://twitter.com/PascalPrecht">{{"TWITTER" | translate}}</a>
</nav>
And in ./examples/languages_pascal/ folder now exist new file, which called "ruRU.json" with a next content:
"BLOG_PASCAL": "Блог",
"ABOUT_PASCAL": "О",
"TALKS_PASCAL": "Переговоры",
"GITHUB_PASCAL": "На github",
"TWITTER_PASCAL": "Твиттер"
Okay! Let's talk about options more detailed. Gulp Auto Translator has a four group of options:
The group contains next parameters:
The group contains next parameters:
"ruRU":"ru"
where "ruRU" it is name of language file
and "ru" - direction of translate, "en-ru", because fromLanguage is "en".Currently we will use only Yandex Translate Api, because it is free. Maybe later i will add google api for wealthy guys. Okay! In this group we have next options:
###Languages
Currently we are have a strong support for next languages:
en - English, ru - Russian, es - Spanish, de - German, fr - French, it - Italian, pl - Polish.
About another languages - i suppose it would work, but we have no test yet. If you can help us with something language missed in this list, we would be glad to take it.
So how i think this plugin will be unpopular i won't post here "Contributing guide"... If you by some reasons will visit this page and you will not understand "how it works" you always can ask your question here:
Thanks!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More