Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasvana10 committed May 13, 2024
1 parent 83697b6 commit bf11a2a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Constants
BABEL_CFG = crossword_puzzle/babel.cfg
LOCALES = crossword_puzzle/locales
BASE_POT = crossword_puzzle/locales/base.pot
TRANSLATOR = crossword_puzzle/_translation_utils.py

# i18n
i18n: extract update translate compile

# init: pybabel init -l <locale> -i $(BASE_POT) -d $(LOCALES)

extract:
pybabel extract -F $(BABEL_CFG) -o $(BASE_POT) .

update:
pybabel update -i $(BASE_POT) -d $(LOCALES)

translate:
python $(TRANSLATOR)

compile:
pybabel compile -d $(LOCALES)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="crossword_puzzle",
version="1.2.67",
version="1.2.68",
author="Tomas Vana",
url="https://github.com/tomasvana10/crossword_puzzle",
description="Select, generate and play always-unique crosswords.",
Expand Down

0 comments on commit bf11a2a

Please sign in to comment.