core: set prehydrated locale based on active backend locale
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -1,6 +1,9 @@
 | 
				
			|||||||
 | 
					{% load i18n %}
 | 
				
			||||||
 | 
					{% get_current_language as LANGUAGE_CODE %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
    window.authentik = {};
 | 
					    window.authentik = {};
 | 
				
			||||||
    window.authentik.locale = "{{ tenant.default_locale }}";
 | 
					    window.authentik.locale = "{{ LANGUAGE_CODE }}";
 | 
				
			||||||
    window.authentik.config = JSON.parse('{{ config_json|escapejs }}');
 | 
					    window.authentik.config = JSON.parse('{{ config_json|escapejs }}');
 | 
				
			||||||
    window.authentik.tenant = JSON.parse('{{ tenant_json|escapejs }}');
 | 
					    window.authentik.tenant = JSON.parse('{{ tenant_json|escapejs }}');
 | 
				
			||||||
    window.addEventListener("DOMContentLoaded", () => {
 | 
					    window.addEventListener("DOMContentLoaded", () => {
 | 
				
			||||||
 | 
				
			|||||||
@ -13,8 +13,8 @@
 | 
				
			|||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block body %}
 | 
					{% block body %}
 | 
				
			||||||
<ak-message-container data-refresh-on-locale="true"></ak-message-container>
 | 
					<ak-message-container></ak-message-container>
 | 
				
			||||||
<ak-interface-admin data-refresh-on-locale="true">
 | 
					<ak-interface-admin>
 | 
				
			||||||
    <section class="ak-static-page pf-c-page__main-section pf-m-no-padding-mobile pf-m-xl">
 | 
					    <section class="ak-static-page pf-c-page__main-section pf-m-no-padding-mobile pf-m-xl">
 | 
				
			||||||
        <div class="pf-c-empty-state" style="height: 100vh;">
 | 
					        <div class="pf-c-empty-state" style="height: 100vh;">
 | 
				
			||||||
            <div class="pf-c-empty-state__content">
 | 
					            <div class="pf-c-empty-state__content">
 | 
				
			||||||
 | 
				
			|||||||
@ -29,8 +29,8 @@ window.authentik.flow = {
 | 
				
			|||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block body %}
 | 
					{% block body %}
 | 
				
			||||||
<ak-message-container data-refresh-on-locale="true"></ak-message-container>
 | 
					<ak-message-container></ak-message-container>
 | 
				
			||||||
<ak-flow-executor data-refresh-on-locale="true">
 | 
					<ak-flow-executor>
 | 
				
			||||||
    <section class="ak-static-page pf-c-page__main-section pf-m-no-padding-mobile pf-m-xl">
 | 
					    <section class="ak-static-page pf-c-page__main-section pf-m-no-padding-mobile pf-m-xl">
 | 
				
			||||||
        <div class="pf-c-empty-state" style="height: 100vh;">
 | 
					        <div class="pf-c-empty-state" style="height: 100vh;">
 | 
				
			||||||
            <div class="pf-c-empty-state__content">
 | 
					            <div class="pf-c-empty-state__content">
 | 
				
			||||||
 | 
				
			|||||||
@ -13,8 +13,8 @@
 | 
				
			|||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block body %}
 | 
					{% block body %}
 | 
				
			||||||
<ak-message-container data-refresh-on-locale="true"></ak-message-container>
 | 
					<ak-message-container></ak-message-container>
 | 
				
			||||||
<ak-interface-user data-refresh-on-locale="true">
 | 
					<ak-interface-user>
 | 
				
			||||||
    <section class="ak-static-page pf-c-page__main-section pf-m-no-padding-mobile pf-m-xl">
 | 
					    <section class="ak-static-page pf-c-page__main-section pf-m-no-padding-mobile pf-m-xl">
 | 
				
			||||||
        <div class="pf-c-empty-state" style="height: 100vh;">
 | 
					        <div class="pf-c-empty-state" style="height: 100vh;">
 | 
				
			||||||
            <div class="pf-c-empty-state__content">
 | 
					            <div class="pf-c-empty-state__content">
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user