Skip to content

Commit c450098

Browse files
committed
Merge branch 'main' of github.com:devforth/adminforth
2 parents dc81d73 + 31c0963 commit c450098

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

adminforth/plugins/i18n/Changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.11]
9+
10+
### Fixed
11+
12+
- cache invalidations on delete
13+
814
## [v1.0.10]
915

10-
## Fixed
16+
### Fixed
1117

1218
- fix automatic translations for duplicate strings
1319
- improve slavik pluralization generations by splitting the requests

adminforth/plugins/i18n/custom/LanguageInUserMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import 'flag-icon-css/css/flag-icons.min.css';
4444
import { IconCaretDownSolid } from '@iconify-prerendered/vue-flowbite';
4545
46-
import { setLang, getCountryCodeFromLangCode, getLocalLang } from './langCommon';
46+
import { setLang, getCountryCodeFromLangCode, getLocalLang, setLocalLang } from './langCommon';
4747
4848
import { computed, ref, onMounted, watch } from 'vue';
4949
import { useI18n } from 'vue-i18n';
@@ -56,7 +56,7 @@ const props = defineProps(['meta', 'resource']);
5656
const selectedLanguage = ref('');
5757
5858
function doChangeLang(lang) {
59-
setLang({ setLocaleMessage, locale }, props.meta.pluginInstanceId, lang);
59+
setLocalLang(lang);
6060
// unfortunately, we need this to recall all APIs
6161
document.location.reload();
6262

0 commit comments

Comments
 (0)