Total Complexity | 1 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from candv import Constants |
||
2 | from candv import SimpleConstant |
||
3 | from candv import with_constant_class |
||
4 | |||
5 | from ._utils import export |
||
6 | |||
7 | |||
8 | @export |
||
9 | class SupportedLanguageConstant(SimpleConstant): |
||
10 | ... |
||
11 | |||
12 | |||
13 | @export |
||
14 | class SUPPORTED_LANGUAGES(with_constant_class(SupportedLanguageConstant), Constants): |
||
15 | EN = SupportedLanguageConstant() |
||
16 | RU = SupportedLanguageConstant() |
||
17 | |||
18 | @classmethod |
||
19 | def get_default(cls): |
||
20 | return cls.EN |
||
21 |