Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-08-09 14:58:09 +0200
committerGitHub <noreply@github.com>2022-08-09 14:58:09 +0200
commita31bf94fa3727ef2c13e37d33560f6acf1141902 (patch)
tree62e7319bfb735af356980c67b15f8fd4cfb88f25
parent4ab250d42741d914b162ca491b1f57fa25341d91 (diff)
Adding a .json() call for our JSON serializer for the Language class (#1410)
* Adding a .json() call for our JSON serializer * Update translationhandler.py
-rw-r--r--archinstall/lib/translationhandler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archinstall/lib/translationhandler.py b/archinstall/lib/translationhandler.py
index 12c8da4a..58b7ebd4 100644
--- a/archinstall/lib/translationhandler.py
+++ b/archinstall/lib/translationhandler.py
@@ -37,6 +37,8 @@ class Language:
return True
return False
+ def json(self) -> str:
+ return self.lang
class TranslationHandler:
_base_pot = 'base.pot'