diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-21 17:54:59 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-21 17:55:21 -0700 |
commit | 3ba3839ecd7924dc2f25295754d7a257c2542b23 (patch) | |
tree | d7246c44d8cf192da65eb9a14a2006bbed66feee /Makefile | |
parent | d12d03bd241d93ffc624747f9f60fdf7fbe18f14 (diff) | |
download | fatcat-scholar-3ba3839ecd7924dc2f25295754d7a257c2542b23.tar.gz fatcat-scholar-3ba3839ecd7924dc2f25295754d7a257c2542b23.zip |
better translation marking; add some basic de and zh
Current translations are just from Google Translate
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -28,3 +28,8 @@ dev-index: ## Delete/Create DEV elasticsearch fulltext index locally http put ":9200/dev_scholar_fulltext_v01/_alias/dev_scholar_fulltext" cat data/sim_intermediate.json data/work_intermediate.json | pipenv run python -m fatcat_scholar.transform run_transform | esbulk -verbose -size 200 -id key -w 4 -index dev_scholar_fulltext_v01 -type _doc +.PHONY: update-i18n +update-i18n: ## Re-extract and compile translation files + pipenv run pybabel extract -F extra/i18n/babel.cfg -o extra/i18n/web_interface.pot fatcat_scholar/ + pipenv run pybabel update -i extra/i18n/web_interface.pot -d fatcat_scholar/translations + pipenv run pybabel compile -d fatcat_scholar/translations |