commons._translations   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 11
dl 0
loc 20
rs 10
c 0
b 0
f 0
1
from pathlib import Path
2
3
from verboselib import Translations
4
5
6
__here__ = Path(__file__).absolute().parent
7
8
9
translations = Translations(
10
  domain="il2fb-commons",
11
  locale_dir_path=(__here__ / "locale"),
12
)
13
14
15
gettext       = translations.gettext
16
gettext_lazy  = translations.gettext_lazy
17
18
pgettext      = translations.pgettext
19
pgettext_lazy = translations.pgettext_lazy
20