Formation Prestashop intégrateur: Email templates sdk / Traductions
Vous êtes ici : Accueil / Prestashop intégrateur / Email templates sdk / Traductions
Traductions
Pour ajouter de nouvelle langue, vous pouvez modifier le fichier gulpfile.js et relancer la commande
gulp langs:clean
gulp langs:dl
Langues disponibles (10/07) : en,fr,es,de,it,nl,pl,pt,da,sv,ro,el,cs,no,sk
// Download translations
gulp.task('langs:dl', ['langs:clean'], function () {
['en' , 'fr', 'es', 'de', 'it', 'nl', 'pl', 'pt', 'da', 'sv', 'ro', 'el', 'cs', 'no', 'sk'].forEach(function(lang) {
download('http://api.addons.prestashop.com/index.php?version=1&method=translations&type=emails&iso_lang='+lang)
.pipe(buffer())
.pipe(rename("lang.json"))
.pipe(gulp.dest('langs/'+lang+'/'));
})