betty.locale.translation module

Manage translations of built-in translatable strings.

async betty.locale.translation.new_dev_translation(locale: str) None[source]

Create a new translation for Betty itself.

async betty.locale.translation.new_project_translation(locale: str, project: Project) None[source]

Create a new translation for the given project.

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

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[source]

Update the translations for the given project.