tenants: add default_locale read only field, pre-hydrate in flows and read in autodetect as first choice

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-07-05 23:04:25 +02:00
parent 3344af72c2
commit 0a73e7ac9f
9 changed files with 70 additions and 29 deletions

View File

@ -10,7 +10,9 @@
<script>ShadyDOM = { force: !navigator.webdriver };</script>
{% endif %}
<script>
window.authentik = {};
window.authentik = {
"locale": "{{ tenant.default_locale }}",
};
window.authentik.flow = {
"layout": "{{ flow.layout }}",
};