sourcery advice
This commit is contained in:
@@ -5,8 +5,6 @@ from string import Formatter
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
_FORMATTER = Formatter()
|
|
||||||
|
|
||||||
from .exceptions import (
|
from .exceptions import (
|
||||||
DuplicateTranslationKeyError,
|
DuplicateTranslationKeyError,
|
||||||
InvalidLocaleError,
|
InvalidLocaleError,
|
||||||
@@ -14,6 +12,7 @@ from .exceptions import (
|
|||||||
LocaleNotFoundError,
|
LocaleNotFoundError,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_FORMATTER = Formatter()
|
||||||
DEFAULT_LOCALE = "zh-CN"
|
DEFAULT_LOCALE = "zh-CN"
|
||||||
PLURAL_CATEGORIES = {"zero", "one", "two", "few", "many", "other"}
|
PLURAL_CATEGORIES = {"zero", "one", "two", "few", "many", "other"}
|
||||||
TranslationValue = str | dict[str, str]
|
TranslationValue = str | dict[str, str]
|
||||||
|
|||||||
Reference in New Issue
Block a user