add_requester_translation

toloka.client.project.Project.add_requester_translation | Source code

add_requester_translation(
self,
language: str,
public_name: Optional[str] = None,
public_description: Optional[str] = None,
public_instructions: Optional[str] = None
)

Adds a project interface translation to other language.

To translate to several languages call this method for each translation. A subsequent call with the same language updates the translation of passed parameters and doesn't touch omitted parameters.

Parameters description

ParametersTypeDescription
languagestr

Two-letter ISO 639-1 language code in upper case.

public_nameOptional[str]

A translated project name.

public_descriptionOptional[str]

A translated project description.

public_instructionsOptional[str]

Translated instructions for Tolokers.

Examples:

How to add russian translation to the project.

project = toloka.client.Project(
public_name='Cats vs dogs',
public_description='A simple image classification',
public_instructions='Determine which animal is in an image',
...
)
project.set_default_language('EN')
project.add_requester_translation(
language='RU',
public_name='Кошки или собаки'
public_description='Простая классификация изображений'
)
project.add_requester_translation(language='RU', public_instructions='Определите, какое животное изображено')

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming