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

docs: enable translations for sample deployment #67

Merged
merged 1 commit into from
Jun 19, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static tailwind_tags %}
<!DOCTYPE html>
<html lang="en" data-theme="dracula">
<html data-theme="dracula">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
10 changes: 9 additions & 1 deletion sample_deployment/sample_deployment/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django_browser_reload.middleware.BrowserReloadMiddleware",
"django.middleware.locale.LocaleMiddleware",
"allauth.account.middleware.AccountMiddleware",
]

Expand Down Expand Up @@ -127,10 +128,17 @@

LANGUAGE_CODE = "en-us"

TIME_ZONE = "UTC"
LANGUAGES = (
("en", "English"),
("fr", "French"),
("es", "Spanish"),
("pt-br", "Portuguese (Brazil)"),
)

USE_I18N = True

TIME_ZONE = "UTC"

USE_TZ = True


Expand Down
Loading