Skip to content

Commit

Permalink
docs: enable translations for sample deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
danihodovic committed Jun 19, 2024
1 parent 5b8f6fb commit b4ec9d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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

0 comments on commit b4ec9d4

Please sign in to comment.