Updated docs
This commit is contained in:
@@ -4,7 +4,6 @@ from cpl_translation.translation_service_abc import TranslationServiceABC
|
||||
|
||||
|
||||
class TranslatePipe(PipeABC):
|
||||
|
||||
def __init__(self, translation: TranslationServiceABC):
|
||||
self._translation = translation
|
||||
|
||||
@@ -12,5 +11,5 @@ class TranslatePipe(PipeABC):
|
||||
try:
|
||||
return self._translation.translate(value)
|
||||
except KeyError as e:
|
||||
Console.error(f'Translation {value} not found')
|
||||
return ''
|
||||
Console.error(f"Translation {value} not found")
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user