Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adiciona sistema de traduções para arquivos .po #881

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"haystack",
"maintenance_mode",
'django_prometheus',
'rosetta',
]

LOCAL_APPS = [
Expand Down Expand Up @@ -500,4 +501,6 @@


# Timeout function fetch_data
FETCH_DATA_TIMEOUT = env.int("FETCH_DATA_TIMEOUT", default=10)
FETCH_DATA_TIMEOUT = env.int("FETCH_DATA_TIMEOUT", default=10)

ROSETTA_AUTO_COMPILE = True
1 change: 1 addition & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
# Alternatively, if you want Wagtail pages to be served from a subpath
# of your site, rather than the site root:
# url(r"^pages/", include(wagtail_urls)),
path('rosetta/', include('rosetta.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# Translatable URLs
Expand Down
6 changes: 5 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,8 @@ django-prometheus==2.3.1

# freezegun
# ------------------------------------------------------------------------------
freezegun==1.5.1
freezegun==1.5.1

# django-rosetta
# ------------------------------------------------------------------------------
django-rosetta==0.10.1
Loading