Skip to content

Tutorial: How to translate a kata

0u0 edited this page Jun 8, 2017 · 3 revisions

Simple text tutorial

Writing a translation

Now you found a kata in JavaScript. You liked it, and want to translate it into Python. There should be a "+" sign next to the language icons after you solved it. Click on it and you'll land on the list of current translations. After you've checked that there isn't a pending translation in Python, you click on "Translate this kata".

This will open translation kumite editor. Choose the language in the drop-down menu before you write any code. Then fill the (initial) solution and (example) tests. Save your progress often to prevent data loss. Whenever you're ready, publish your translation.

——The conjured Codewars codex - 4.11.3


Step-By-Step Photo Tutorial

When you finished a kata, you can translate it to other languages.

You may check Whether the author is still active or not at first. Only the author of the kata could approve or decline the translation

author

Select Add New to see the current list of translations:

add new

Check the pending translations list

At this example, you could see that there is already a unapproved python translation

py ver

Translate the kata to other language

other lang

Choose a language

choose lang

Save your unfinished kata whenever you like.

save

You can find the draft at you Profile page

draft tab


Run

When you finished all the translation(include the test example and solution setup), you could save and run the code to check if there is any bug.

test example run

publish

result

Edit the published Kumite

edit draft

Comment

At last, leave a comment at the original kata link edit comment comment


Approved

When your translation is approved it will be marked as closed. Don't worry about it. The new languages will appear in the languages list.

approved closed new lang

Clone this wiki locally