Skip to content

Commit 24c3bb8

Browse files
committed
Merge branch 'main' of github.com:devforth/adminforth into main
2 parents 8937318 + e13daac commit 24c3bb8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
294294
loginBackgroundPosition: this.adminforth.config.auth.loginBackgroundPosition,
295295
title: this.adminforth.config.customization?.title,
296296
demoCredentials: this.adminforth.config.auth.demoCredentials,
297-
loginPromptHTML: this.adminforth.config.auth.loginPromptHTML,
297+
loginPromptHTML: await tr(this.adminforth.config.auth.loginPromptHTML, 'system.loginPromptHTML'),
298298
loginPageInjections: this.adminforth.config.customization.loginPageInjections,
299299
rememberMeDays: this.adminforth.config.auth.rememberMeDays,
300300
}

adminforth/plugins/i18n/custom/LanguageUnderLogin.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import Select from '@/afcl/Select.vue';
3333
import 'flag-icon-css/css/flag-icons.min.css';
3434
import { setLang, getCountryCodeFromLangCode, getLocalLang } from './langCommon';
35+
import { useCoreStore } from '@/stores/core';
3536
3637
import { computed, ref, onMounted, watch } from 'vue';
3738
import { useI18n } from 'vue-i18n';
@@ -42,9 +43,11 @@ const { setLocaleMessage, locale } = useI18n();
4243
const props = defineProps(['meta', 'resource']);
4344
4445
const selectedLanguage = ref('');
46+
const coreStore = useCoreStore();
4547
46-
watch(() => selectedLanguage.value, (newVal) => {
47-
setLang({ setLocaleMessage, locale }, props.meta.pluginInstanceId, newVal);
48+
watch(() => selectedLanguage.value, async (newVal) => {
49+
await setLang({ setLocaleMessage, locale }, props.meta.pluginInstanceId, newVal);
50+
coreStore.getPublicConfig();
4851
});
4952
5053

0 commit comments

Comments
 (0)