Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
8 new translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jsedlacek committed Jun 19, 2014
1 parent 8a72425 commit c362f3e
Show file tree
Hide file tree
Showing 13 changed files with 110 additions and 7 deletions.
3 changes: 1 addition & 2 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"*.js"
],
"json": [
"language-en.json",
"language-cz.json"
"languages/*.json"
],
"templates": [
"*.html",
Expand Down
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample</title>
</head>
<body>
<script src="build/build.js"></script>
<script>
var View = require('nps-widget');
var view = new View({language: 'de'});
view.appendTo(document.body);
view.show();
</script>
</body>
</html>
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions languages/de.json
Original file line number Diff line number Diff line change
@@ -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!"
}
2 changes: 1 addition & 1 deletion language-en.json → languages/en.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 11 additions & 0 deletions languages/es.json
Original file line number Diff line number Diff line change
@@ -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!"
}
11 changes: 11 additions & 0 deletions languages/fr.json
Original file line number Diff line number Diff line change
@@ -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 !"
}
11 changes: 11 additions & 0 deletions languages/it.json
Original file line number Diff line number Diff line change
@@ -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!"
}
11 changes: 11 additions & 0 deletions languages/pl.json
Original file line number Diff line number Diff line change
@@ -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!"
}
11 changes: 11 additions & 0 deletions languages/pt-br.json
Original file line number Diff line number Diff line change
@@ -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!"
}
11 changes: 11 additions & 0 deletions languages/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"HOW_LIKELY": "Насколько вероятно, что вы порекомендуете нас своим друзьям и коллегам?",
"NOT_AT_ALL": "Совершенно невероятно",
"NEUTRAL": "Нейтрально",
"EXTREMLY": "Очень вероятно",
"THANKS_IMPROVE": "Спасибо за ваше мнение. Что мы могли бы улучшить?",
"GIVE_FEEDBACK": "Отправьте нам отзыв",
"DISMISS": "Скрыть",
"SUBMIT": "Отправить отзыв",
"THANKS": "Благодарим вас за представленную информацию!"
}
11 changes: 11 additions & 0 deletions languages/tr.json
Original file line number Diff line number Diff line change
@@ -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!"
}

0 comments on commit c362f3e

Please sign in to comment.