From 534500d21247d4c904090425d3a924c18afea135 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 12 Feb 2021 23:20:45 +0300 Subject: initial --- strings.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 strings.py (limited to 'strings.py') diff --git a/strings.py b/strings.py new file mode 100644 index 0000000..065210a --- /dev/null +++ b/strings.py @@ -0,0 +1,12 @@ +__strings = { + 'status': 'Status', + 'generation': 'Generation', + 'gs': 'GS', + 'ri': 'RI', + 'errors': 'Errors' +} + + +def lang(key): + global __strings + return __strings[key] if key in __strings else f'{{{key}}}' -- cgit v1.2.3