Skip to content

Commit

Permalink
got dummy values to render. Now waiting for actual translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bwang-icf committed Dec 13, 2024
1 parent 06e5019 commit 8112822
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2,128 deletions.
2 changes: 1 addition & 1 deletion apps/dot_ext/views/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def dispatch(self, request, *args, **kwargs):
request.session['version'] = self.version
# Store the lang parameter value on the server side with session keys
lang = request.GET.get('lang', None)
if lang is not None and (lang == 'en' or lang == 'es' or lang == 'zh-Hans'):
if lang is not None and (lang == 'en' or lang == 'es' or lang == 'zh'):
request.session['auth_language'] = lang
return super().dispatch(request, *args, **kwargs)

Expand Down
4 changes: 2 additions & 2 deletions templates/auth_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
const langCookieName = "{{ settings.LANGUAGE_COOKIE_NAME }}";
let lang = getCookie(langCookieName);

if (lang === 'zh-Hans') {
setCookie(langCookieName, 'zh-Hans');
if (lang === 'zh') {
setCookie(langCookieName, 'zh');
} else if (lang === 'es') {
setCookie(langCookieName, 'es');
} else {
Expand Down
Empty file.
Loading

0 comments on commit 8112822

Please sign in to comment.