Fixed base class of translation service

This commit is contained in:
2022-07-16 22:06:38 +02:00
parent 7498fe3255
commit cbf669d3bd
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
from abc import ABC, abstractmethod
from cpl_translation import TranslationSettings
class TranslationServiceABC(ABC):
@@ -16,7 +18,7 @@ class TranslationServiceABC(ABC):
def load(self, lang: str): pass
@abstractmethod
def load_by_settings(self): pass
def load_by_settings(self, settings: TranslationSettings): pass
@abstractmethod
def translate(self, key: str) -> str: pass