Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update i18n_translations.yml to add basque #489

Merged
merged 5 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ learnr (development version)
* Added shortcuts for pipe (`Command/Control+Shift+M`) and assignment (`Alt+-`) operators in exercise code boxes. ([#472](https://github.com/rstudio/learnr/pull/472))
* Added Spanish language support (@yabellini [#483](https://github.com/rstudio/learnr/pull/483))
* Added Portuguese language support (@beatrizmilz [#488](https://github.com/rstudio/learnr/pull/488))
* Added Basque language support (@mikelmadina [#489](https://github.com/rstudio/learnr/pull/489))

## Bug fixes

Expand Down
28 changes: 28 additions & 0 deletions data-raw/i18n_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,168 +59,196 @@ button:
es: "Ejecutar código"
pt: "Executar código"
emo: "🏃"
eu: "Kodea egikaritu"
runcodetitle:
# {{kbd}} — The keyboard shortcut that triggers the runcode button
en: "$t(button.runcode) ({{kbd}})"
fr: "$t(button.runcode) ({{kbd}})"
es: "$t(button.runcode) ({{kbd}})"
pt: "$t(button.runcode) ({{kbd}})"
emo: "$t(button.runcode) ({{kbd}})"
eu: "$t(button.runcode) ({{kbd}})"
hint:
en: "Hint"
fr: "Indication"
es: "Pista"
pt: "Dica"
emo: "💡"
eu: "Laguntza"
hint_plural:
en: "Hints"
fr: "Indications"
es: "Pistas"
pt: "Dicas"
emo: "$t(button.hint)"
eu: "Laguntza"
hinttitle:
en: "$t(button.hint)"
fr: "$t(button.hint)"
es: "$t(button.hint)"
pt: "$t(button.hint)"
emo: "$t(button.hint)"
eu: "$t(button.hint)"
hintnext:
en: "Next Hint"
fr: "Indication Suivante"
es: "Siguiente pista"
pt: "Próxima dica"
emo: ~
eu: "Aurreko laguntza"
hintprev:
en: "Previous Hint"
fr: "Indication Précédente"
es: "Pista anterior"
pt: "Dica anterior"
emo: ~
eu: "Hurrengo laguntza"
solution:
en: "Solution"
fr: "Solution"
es: "Solución"
pt: "Solução"
emo: "🎯"
eu: "Ebazpena"
solutiontitle:
en: "$t(button.solution)"
fr: "$t(button.solution)"
es: "$t(button.solution)"
pt: "$t(button.solution)"
emo: "$t(button.solution)"
eu: "$t(button.solution)"
copyclipboard:
en: "Copy to Clipboard"
fr: "Copier dans le Presse-papier"
es: "Copiar al portapapeles"
pt: "Copiar para a área de transferência"
emo: "📋"
eu: "Arbelean kopiatu"
startover:
en: "Start Over"
fr: "Recommencer"
es: "Reiniciar"
pt: "Reiniciar"
emo: "⏮"
eu: "Berrabiarazi"
startovertitle:
en: "$t(button.startover)"
fr: "$t(button.startover)"
es: "$t(button.startover)"
pt: "$t(button.startover)"
emo: "Start Over"
eu: "$t(button.startover)"
continue:
en: "Continue"
fr: "Continuer"
es: "Continuar"
pt: "Continuar"
emo: "✅"
eu: "Jarraitu"
submitanswer:
en: "Submit Answer"
fr: "Soumettre"
es: "Enviar respuesta"
pt: "Enviar resposta"
emo: "🆗"
eu: "Erantzuna bidali"
submitanswertitle:
en: "$t(button.submitanswer)"
fr: "$t(button.submitanswer)"
es: "$t(button.submitanswer)"
pt: "$t(button.submitanswer)"
emo: "Submit Answer"
eu: "$t(button.submitanswer)"
previoustopic:
en: "Previous Topic"
fr: "Chapitre Précédent"
es: "Tema anterior"
pt: "Tópico anterior"
emo: "⬅"
eu: "Aurreko atala"
nexttopic:
en: "Next Topic"
fr: "Chapitre Suivant"
es: "Tema siguiente"
pt: "Próximo tópico"
emo: "➡"
eu: "Hurrengo atala"
questionsubmit:
en: "$t(button.submitanswer)"
fr: "$t(button.submitanswer)"
es: "$t(button.submitanswer)"
pt: "$t(button.submitanswer)"
emo: "$t(button.submitanswer)"
eu: "$t(button.submitanswer)"
questiontryagain:
en: "Try Again"
fr: "Réessayer"
es: "Volver a intentar"
pt: "Tentar novamente"
emo: "🔁"
eu: "Berriro saiatu"
text:
startover:
en: "Start Over"
fr: "Recommencer"
es: "Reiniciar"
pt: "Reiniciar"
emo: "⏮"
eu: "Berrabiarazi"
areyousure:
en: "Are you sure you want to start over? (all exercise progress will be reset)"
fr: "Êtes-vous certains de vouloir recommencer? (La progression sera remise à zéro)"
es: "¿De verdad quieres empezar de nuevo? (todo el progreso del ejercicio se perderá)"
pt: "Tem certeza que deseja começar novamente? (todo o progresso feito será perdido)"
emo: "🤔"
eu: "Berriro hasi nahi duzu? (egindako lana galdu egingo da)"
youmustcomplete:
en: "You must complete the"
fr: "Vous devez d'abord compléter"
es: "Debes completar"
pt: "Você deve completar"
emo: "⚠️ 👉 🧑‍💻"
eu: "Aurrera egin baino lehen atal honetako"
exercise:
en: "exercise"
fr: "l'exercice"
es: "el ejercicio"
pt: "o exercício"
emo: ""
eu: "ariketa egin behar duzu."
exercise_plural:
en: "exercises"
fr: "des exercices"
es: "los ejercicios"
pt: "os exercícios"
emo: ""
eu: "ariketak egin behar dituzu."
inthissection:
en: "in this section before continuing."
fr: "de cette section avec de continuer."
es: "en esta sección antes de continuar."
pt: "nesta seção antes de continuar."
emo: ""
eu: ""
code:
en: "Code"
fr: "Code"
es: "Código"
pt: "Código"
emo: "💻"
eu: "Kodea"
enginecap:
# {{engine}} — The code engine used by the exercise, e.g. "R", "SQL", "JavaScript"
en: "{{engine}} $t(text.code)"
fr: "$t(text.code) {{engine}}"
es: "$t(text.code) {{engine}}"
pt: "$t(text.code) {{engine}}"
emo: "$t(text.code) {{engine}}"
eu: "$t(text.code) {{engine}}"
quiz:
en: "Quiz"
fr: "Quiz"
es: "Cuestionario"
pt: "Quiz"
emo: ~
eu: "Galdetegia"
Binary file modified inst/i18n_translations
Binary file not shown.
4 changes: 2 additions & 2 deletions sandbox/multilang.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Tutorial"
output:
learnr::tutorial:
progressive: true
allow_skip: true
allow_skip: false
language:
fr:
button:
Expand Down Expand Up @@ -74,7 +74,7 @@ This is the intro to the whole ball of wax.
```{r context="render"}
shiny::selectInput(
"language", "Choose a Language",
choices = c("English" = "en", "French" = "fr", "Spanish" = "es", "Emoji" = "emo")
choices = names(learnr:::i18n_translations())
)
```

Expand Down