23 lines
435 B
Python
23 lines
435 B
Python
|
from abc import ABC, abstractmethod
|
||
|
|
||
|
|
||
|
class TranslationServiceABC(ABC):
|
||
|
|
||
|
@abstractmethod
|
||
|
def __init__(self): pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def set_default_lang(self, lang: str): pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def set_lang(self, lang: str): pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def load(self, lang: str): pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def load_by_settings(self): pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def translate(self, key: str) -> str: pass
|