Skip to content

Commit

Permalink
feat: add atlas support for cookiecutter-django-app
Browse files Browse the repository at this point in the history
Update cookiecutter-django-app to support atlas for all new apps

Refs: FC-0012 OEP-58
  • Loading branch information
shadinaif committed Sep 21, 2023
1 parent df10fda commit 96662db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cookiecutter-django-app/{{cookiecutter.repo_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ selfcheck: ## check that the Makefile is well-formed

extract_translations: ## extract strings to be translated, outputting .mo files
rm -rf docs/_build
cd {{cookiecutter.app_name}} && ../manage.py makemessages -l en -v1 -d django
cd {{cookiecutter.app_name}} && ../manage.py makemessages -l en -v1 -d djangojs
cd {{cookiecutter.app_name}} && i18n_tool extract --no-segment

compile_translations: ## compile translation files, outputting .po files for each supported language
cd {{cookiecutter.app_name}} && ../manage.py compilemessages
cd {{cookiecutter.app_name}} && i18n_tool generate

detect_changed_source_translations:
cd {{cookiecutter.app_name}} && i18n_tool changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{% raw %}

{% load i18n %}
{% trans "Dummy text to generate a translation (.po) source file. It is safe to delete this line. It is also safe to delete (load i18n) above if there are no other (trans) tags in the file" %}

{% comment %}
As the developer of this package, don't place anything here if you can help it
since this allows developers to have interoperability between your template
Expand Down

0 comments on commit 96662db

Please sign in to comment.