Source code for betty.cli.commands.new_translation
from __future__ import annotations # noqa: D100
from typing import TYPE_CHECKING, Self, final
import asyncclick as click
from typing_extensions import override
from betty.app.factory import AppDependentFactory
from betty.assertion import assert_locale_identifier
from betty.cli.commands import Command, command, parameter_callback, project_option
from betty.locale import translation
from betty.locale.localizable import _
from betty.plugin import ShorthandPluginBase
if TYPE_CHECKING:
from betty.app import App
from betty.project import Project
[docs]
@final
class NewTranslation(ShorthandPluginBase, AppDependentFactory, Command):
"""
A command to create a new translation for a project.
"""
_plugin_id = "new-translation"
_plugin_label = _("Create a new translation")