From 435a2ceea6c8d627fd3e82808e173cb34e1194e5 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 8 Jun 2020 11:41:51 +0200 Subject: [PATCH] avoid caching of detected browser language --- CHANGELOG.md | 1 + scm-ui/ui-webapp/src/i18n.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b9236809f..b97722525f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased ### Fixed +- Avoid caching of detected browser language - Fixes configuration of jetty listener address with system property `jetty.host` ([#1173](https://github.com/scm-manager/scm-manager/pull/1173), [#1174](https://github.com/scm-manager/scm-manager/pull/1174)) ## [2.0.0] - 2020-06-04 diff --git a/scm-ui/ui-webapp/src/i18n.ts b/scm-ui/ui-webapp/src/i18n.ts index 81b842f639..a3b6c2eba6 100644 --- a/scm-ui/ui-webapp/src/i18n.ts +++ b/scm-ui/ui-webapp/src/i18n.ts @@ -61,6 +61,15 @@ i18n init: { credentials: "same-origin" } + }, + + // configure LanguageDetector + // see https://github.com/i18next/i18next-browser-languageDetector#detector-options + detection: { + // we only use browser configuration + order: ["navigator"], + // we do not cache the detected language + caches: [] } });