-
Notifications
You must be signed in to change notification settings - Fork 242
Add Korean translations #634
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
Conversation
…language translations in the tutorial
gadenbuie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @choonghyunryu! I just one small question about the test you added.
Also, if you don't mind, could you please add your name and this PR number to the acknowledgements in the NEWS file here? https://github.com/choonghyunryu/learnr/blob/main/NEWS.md?plain=1#L26-L32
tests/testthat/test-i18n.R
Outdated
| ex <- mock_exercise( | ||
| user_code = c( | ||
| 'i18n_set_language_option("ko")', | ||
| 'knit_opt <- knitr::opts_knit$get("tutorial.language")', | ||
| 'env_var <- Sys.getenv("LANGUAGE")' | ||
| ) | ||
| ) | ||
| result <- withr::with_tempdir(render_exercise(ex, new.env())) | ||
| expect_equal(result$envir_result$knit_opt, "ko") | ||
| expect_equal(result$envir_result$env_var, "ko") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wanted to check: are you intending to simply check that the Korean translation was added correctly? If so, we can remove this test, since we don't specifically test the exact languages that are included in the translations.
We do test the infrastructure around internationalization; for example this test is about checking that learnr does the right thing for variants of a language, e.g. Canadian French vs. generic French. Is there anything unusual about variants of the Korean language in this regard that we should be testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank so much @gadenbuie.
I've already done the Korean translation correctly, and I've also verified that it actually works.
So, I removed that logic from testthat. And I modified the README.md.
Now in South Korea, we can create a learnr tutorial where buttons and messages are printed in Korean.
Remove the logic of Korean translation test.
added name and this PR number to the acknowledgements in the NEWS file.
|
Thanks again @choonghyunryu! |
Create Korean "button", "text", "praise", "encouragement" for Korean language translations in the tutorial.
I hope that the Korean translation in the tutorial will be helpful in making R and data analysis courses for Koreans.
Thanks for providing such a great tool.
I have modified the file below.
PR task list:
devtools::document()