From c362f3ef80fb217cc794f6ebc49ebad599d05e39 Mon Sep 17 00:00:00 2001 From: Jakub Sedlacek Date: Thu, 19 Jun 2014 23:27:16 +0200 Subject: [PATCH] 8 new translations --- component.json | 3 +-- index.html | 16 ++++++++++++++++ index.js | 8 ++++---- language-cz.json => languages/cz.json | 0 languages/de.json | 11 +++++++++++ language-en.json => languages/en.json | 2 +- languages/es.json | 11 +++++++++++ languages/fr.json | 11 +++++++++++ languages/it.json | 11 +++++++++++ languages/pl.json | 11 +++++++++++ languages/pt-br.json | 11 +++++++++++ languages/ru.json | 11 +++++++++++ languages/tr.json | 11 +++++++++++ 13 files changed, 110 insertions(+), 7 deletions(-) create mode 100644 index.html rename language-cz.json => languages/cz.json (100%) create mode 100644 languages/de.json rename language-en.json => languages/en.json (77%) create mode 100644 languages/es.json create mode 100644 languages/fr.json create mode 100644 languages/it.json create mode 100644 languages/pl.json create mode 100644 languages/pt-br.json create mode 100644 languages/ru.json create mode 100644 languages/tr.json diff --git a/component.json b/component.json index 03bd6e7..887a1eb 100644 --- a/component.json +++ b/component.json @@ -28,8 +28,7 @@ "*.js" ], "json": [ - "language-en.json", - "language-cz.json" + "languages/*.json" ], "templates": [ "*.html", diff --git a/index.html b/index.html new file mode 100644 index 0000000..b854434 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + Sample + + + + + + diff --git a/index.js b/index.js index 61fcc33..384a1f2 100644 --- a/index.js +++ b/index.js @@ -5,10 +5,10 @@ var events = require('events'); import loadStyles from 'load-styles'; -var translations = { - cz: require('./language-cz'), - en: require('./language-en') -}; +var translations = {}; +['cz', 'de', 'en', 'es', 'fr', 'it', 'pl', 'pt-br', 'ru', 'tr'].forEach(function(language) { + translations[language] = require('nps-widget/languages/' + language + '.json'); +}); loadStyles(require('./style')); loadStyles(require('./button')); diff --git a/language-cz.json b/languages/cz.json similarity index 100% rename from language-cz.json rename to languages/cz.json diff --git a/languages/de.json b/languages/de.json new file mode 100644 index 0000000..bb2ebae --- /dev/null +++ b/languages/de.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Wie wahrscheinlich ist es, dass Sie uns Ihren Freunden und Kollegen empfehlen?", + "NOT_AT_ALL": "Sehr unwahrscheinlich", + "NEUTRAL": "Neutral", + "EXTREMLY": "Sehr wahrscheinlich", + "THANKS_IMPROVE": "Danke für Ihr Feedback. Was können wir tun, um uns zu verbessern?", + "GIVE_FEEDBACK": "Geben Sie uns Feedback", + "DISMISS": "Ablehnen", + "SUBMIT": "Feedback senden", + "THANKS": "Danke für Ihr Feedback!" +} diff --git a/language-en.json b/languages/en.json similarity index 77% rename from language-en.json rename to languages/en.json index 0d46eeb..0eda5d7 100644 --- a/language-en.json +++ b/languages/en.json @@ -1,5 +1,5 @@ { - "HOW_LIKELY": "How likely are you to recommend our product to your friends and colleagues?", + "HOW_LIKELY": "How likely are you to recommend us to your friends and colleagues?", "NOT_AT_ALL": "Not at all likely", "NEUTRAL": "Neutral", "EXTREMLY": "Extremly likely", diff --git a/languages/es.json b/languages/es.json new file mode 100644 index 0000000..dde2ce4 --- /dev/null +++ b/languages/es.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "¿Cómo de probable sería que usted nos recomendase a sus amigos y colegas?", + "NOT_AT_ALL": "Nada probable", + "NEUTRAL": "Neutral", + "EXTREMLY": "Extremadamente probable", + "THANKS_IMPROVE": "Gracias por tus comentarios. ¿Qué podemos hacer para mejorar?", + "GIVE_FEEDBACK": "Déjanos tus comentarios", + "DISMISS": "Descartar", + "SUBMIT": "Enviar Comentarios", + "THANKS": "¡Gracias por tus comentarios!" +} diff --git a/languages/fr.json b/languages/fr.json new file mode 100644 index 0000000..57cc40c --- /dev/null +++ b/languages/fr.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Nous recommanderiez-vous à vos amis et vos collègues ?", + "NOT_AT_ALL": "Probablement pas", + "NEUTRAL": "Neutre", + "EXTREMLY": "Très probablement", + "THANKS_IMPROVE": "Merci d'avoir partagé votre avis. Quelles améliorations pourrions-nous faire ?", + "GIVE_FEEDBACK": "Donnez-nous votre avis", + "DISMISS": "Décliner", + "SUBMIT": "Soumettre l'avis", + "THANKS": "Merci d'avoir partagé votre avis !" +} diff --git a/languages/it.json b/languages/it.json new file mode 100644 index 0000000..9cd4424 --- /dev/null +++ b/languages/it.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Con quale probabilità ci raccomanderesti ai tuoi amici e colleghi?", + "NOT_AT_ALL": "Per niente probabile", + "NEUTRAL": "Neutrale", + "EXTREMLY": "Molto probabile", + "THANKS_IMPROVE": "Grazie per il feedback. Cosa possiamo fare per migliorarci?", + "GIVE_FEEDBACK": "Dacci il tuo feedback", + "DISMISS": "Chiudi", + "SUBMIT": "Invia feedback", + "THANKS": "Grazie per il tuo feedback!" +} diff --git a/languages/pl.json b/languages/pl.json new file mode 100644 index 0000000..8ab6d6e --- /dev/null +++ b/languages/pl.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Z jakim prawdopodobieństwem polecisz nas przyjaciołom lub znajomym?", + "NOT_AT_ALL": "Niemożliwe", + "NEUTRAL": "Obojętne", + "EXTREMLY": "Bardzo prawdopodobne", + "THANKS_IMPROVE": "Dziękujemy za Twoją odpowiedź. Co możemy zrobić, aby się udoskonalić?", + "GIVE_FEEDBACK": "Wyraź swoją opinię", + "DISMISS": "Wyjdź", + "SUBMIT": "Prześlij opinię", + "THANKS": "Dziękujemy za wyrażenie opinii!" +} diff --git a/languages/pt-br.json b/languages/pt-br.json new file mode 100644 index 0000000..33b037f --- /dev/null +++ b/languages/pt-br.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Qual é a probabilidade de você nos recomendar a seus amigos e colegas?", + "NOT_AT_ALL": "Nem um pouco provável", + "NEUTRAL": "Neutra", + "EXTREMLY": "Extremamente provável", + "THANKS_IMPROVE": "Obrigado pelo seu feedback. O que poderíamos fazer para melhorar?", + "GIVE_FEEDBACK": "Nos dê o seu feedback", + "DISMISS": "Ignorar", + "SUBMIT": "Enviar feedback", + "THANKS": "Obrigado pelo seu feedback!" +} diff --git a/languages/ru.json b/languages/ru.json new file mode 100644 index 0000000..573c182 --- /dev/null +++ b/languages/ru.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Насколько вероятно, что вы порекомендуете нас своим друзьям и коллегам?", + "NOT_AT_ALL": "Совершенно невероятно", + "NEUTRAL": "Нейтрально", + "EXTREMLY": "Очень вероятно", + "THANKS_IMPROVE": "Спасибо за ваше мнение. Что мы могли бы улучшить?", + "GIVE_FEEDBACK": "Отправьте нам отзыв", + "DISMISS": "Скрыть", + "SUBMIT": "Отправить отзыв", + "THANKS": "Благодарим вас за представленную информацию!" +} diff --git a/languages/tr.json b/languages/tr.json new file mode 100644 index 0000000..1b2ec7b --- /dev/null +++ b/languages/tr.json @@ -0,0 +1,11 @@ +{ + "HOW_LIKELY": "Bizi arkadaş ve meslektaşlarınıza tavsiye etmeniz ne kadar olası?", + "NOT_AT_ALL": "Hiç de olası değil", + "NEUTRAL": "Tarafsız", + "EXTREMLY": "Yüksek olasıklıkla", + "THANKS_IMPROVE": "Geri bildiriminiz için teşekkürler. Kendimizi geliştirmek için ne yapabiliriz?", + "GIVE_FEEDBACK": "Bize geri bildirim verin", + "DISMISS": "Artık Anımsatma", + "SUBMIT": "Geribildirim Gönderin", + "THANKS": "Geri bildiriniz için teşekkürler!" +}