Module crowdin_api.api_resources.languages.resource

Classes

class LanguagesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for Languages.

Crowdin supports more than 300 world languages and custom languages created in the system.

Use API to get the list of all supported languages and retrieve additional details (e.g. text direction, internal code) on specific language.

Link to documentation: https://developer.crowdin.com/api/v2/#tag/Languages

Ancestors

Methods

def add_custom_language(self, name: str, code: str, localeCode: str, textDirection: LanguageTextDirection, pluralCategoryNames: Iterable[str], threeLettersCode: str, twoLettersCode: Optional[str] = None, dialectOf: Optional[str] = None)

Add Custom Language.

Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.post

def delete_custom_language(self, languageId: str)

Delete Custom Language.

Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.delete

def edit_custom_language(self, languageId: str, data: Iterable[LanguagesPatchRequest])

Edit Custom Language.

Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.patch

def get_language(self, languageId: str)
def get_languages_path(self, languageId: Optional[str] = None)
def list_supported_languages(self, page: Optional[int] = None, offset: Optional[int] = None, limit: Optional[int] = None)

List Supported Languages.

Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.languages.getMany