| Total Complexity | 0 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 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 |