# this is the first comment
spam = 1 # and this is the second comment
# ... and now a third!
text = "# This is not a comment because it's inside quotes."
Edit: recently the code blocks in the documentation are translatable. This task is now to track the progress of translating the code snippets in the main articles of the documentation that were already translated in whole (see #3).
Currently code blocks aren't translatable. They often contain comments or literals, for which translating them would be natural.
For example part of tutorial:
For example React tutorial translation localizes code blocks.
Edit: recently the code blocks in the documentation are translatable. This task is now to track the progress of translating the code snippets in the main articles of the documentation that were already translated in whole (see #3).