Adding a .json() call for our JSON serializer for the Language class (#1410)

* Adding a .json() call for our JSON serializer

* Update translationhandler.py
This commit is contained in:
Anton Hvornum 2022-08-09 14:58:09 +02:00 committed by GitHub
parent 4ab250d427
commit a31bf94fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ class Language:
return True
return False
def json(self) -> str:
return self.lang
class TranslationHandler:
_base_pot = 'base.pot'