Files
cpl/src/cpl-translation/cpl/translation/translation_service_abc.py
edraft 41087a838b
All checks were successful
Build on push / prepare (push) Successful in 9s
Build on push / core (push) Successful in 17s
Build on push / query (push) Successful in 17s
Build on push / dependency (push) Successful in 17s
Build on push / translation (push) Successful in 14s
Build on push / mail (push) Successful in 18s
Build on push / database (push) Successful in 18s
Build on push / application (push) Successful in 24s
Build on push / auth (push) Successful in 14s
Removed pass from empty functions
2025-09-17 20:49:15 +02:00

24 lines
529 B
Python

from abc import ABC, abstractmethod
from cpl.translation.translation_settings import TranslationSettings
class TranslationServiceABC(ABC):
@abstractmethod
def __init__(self): ...
@abstractmethod
def set_default_lang(self, lang: str): ...
@abstractmethod
def set_lang(self, lang: str): ...
@abstractmethod
def load(self, lang: str): ...
@abstractmethod
def load_by_settings(self, settings: TranslationSettings): ...
@abstractmethod
def translate(self, key: str) -> str: ...