IL2HorusTeam/il2fb-commons

View on GitHub
il2fb/commons/supported_languages.py

Summary

Maintainability
A
0 mins
Test Coverage
from candv import Constants
from candv import SimpleConstant
from candv import with_constant_class

from ._utils import export


@export
class SupportedLanguageConstant(SimpleConstant):
  ...


@export
class SUPPORTED_LANGUAGES(with_constant_class(SupportedLanguageConstant), Constants):
  EN = SupportedLanguageConstant()
  RU = SupportedLanguageConstant()

  @classmethod
  def get_default(cls):
    return cls.EN