Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# betty.locale.translation module

Manage translations of built-in translatable strings.

async betty.locale.translation.new_dev_translation(locale: str) → None

  Create a new translation for Betty itself.

async betty.locale.translation.new_project_translation(locale: str, project: Project) → None

  Create a new translation for the given project.

async betty.locale.translation.update_dev_translations(*, _output_assets_directory_path_override: Path | None = None) → None

  Update the translations for Betty itself.

async betty.locale.translation.update_project_translations(project: Project, source_paths: set[Path] | None = None, *, _output_assets_directory_path_override: Path | None = None) → None

  Update the translations for the given project.