Uh oh!
There was an error while loading. Please reload this page.
[WIP] Icelandic translations. - #1
Conversation
koddsson
commented
May 29, 2016
I wrote a little snippet to translate the problems and solutions using the Google Translate API. The plan is to use those as a base and do little changes to them and push. Here's the snippet. constfs=require('fs');constapiKey='s3cr3tk3y';constgoogleTranslate=require('google-translate')(apiKey);fs.readdir('./problems',(err,files)=>{if(err)throwerr;constproblems=files.reduce((sum,file)=>{sum[file]=fs.readFileSync(`problems/${file}/problem.md`);returnsum;},{});constsolutions=files.reduce((sum,file)=>{sum[file]=fs.readFileSync(`problems/${file}/solution.md`);returnsum;},{});Object.keys(problems).forEach((problem)=>{constproblemText=problems[problem].toString('utf8');googleTranslate.translate(problemText,'is',(err,translation)=>{fs.writeFileSync(`problems/${problem}/problem_is.md`,translation.translatedText);});});Object.keys(solutions).forEach((solution)=>{constsolutionText=solutions[solution].toString('utf8');googleTranslate.translate(solutionText,'is',(err,translation)=>{fs.writeFileSync(`problems/${solution}/solution_is.md`,translation.translatedText);});});}); |
koddsson
commented
May 29, 2016
Ok I pushed all the machine translated files so the above TODO list will serve as a list of stuff that we need to go over and make fixes to the translations. |
| @@ -0,0 +1 @@ | |||
| --- # Síað! Gott starf sía þessi fylking. Í næstu áskorun við munum vinna á dæmi um aðgang array gildi. Hlaupa `javascripting` í vélinni til að velja næsta áskorun. --- No newline at end of file | |||
Ok, guess I'll start at the bottom then... |
gudmundurmar
commented
May 30, 2016
I can't push changes because I don't have the right access and I can't really PR a PR... What to do? |
benediktvaldez
commented
May 30, 2016
@gudmundurmar I've sent you an invite to become a collaborator on this fork! |
Accepted and pushed. EDIT: |
I think you can actually. I do it all the time 😁 |
benediktvaldez
commented
May 30, 2016
Technically you can, a PR is between branches (in this case Not to worry though, you're a contributor now so 😁 |
koddsson
commented
May 31, 2016
Working on |
It looks like the words surrounded by Do you guys mind if I alter the names of the commits using rebase? You just have to use |
koddsson
commented
May 31, 2016
I don't really mind but maybe we should save that till last in order to minimize the risk of rebasing something out of the history? |
Good point @koddsson. Will do that last then :) |
koddsson
commented
May 31, 2016
Working on |
Working on |
gudmundurmar
commented
Jun 1, 2016
Working on |
3f9fd17 to
39c6e3fCompare
Putting this here as a work in progress to have a better overview of translation progress.
Things that need translating:
Translations that need to be verified: