Skip to content

Commit

Permalink
ci: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daxartio committed Oct 16, 2023
1 parent d496461 commit 18f905a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sportorg/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ def generate_mo() -> None:
logger.error(str(e))


if __name__ == '__main__':
# FIXME move to another file
logger.info('Generate mo files')
generate_mo()


def locale() -> Callable[[str], str]:
cat = gettext.Catalog(
config.NAME.lower(), config.LOCALE_DIR, languages=[locale_current]
Expand All @@ -51,8 +57,3 @@ def get_languages() -> List[str]:


translate = locale()


if __name__ == '__main__':
logger.info('Generate mo files')
generate_mo()

0 comments on commit 18f905a

Please sign in to comment.