Public Access
fix(ui): stop old translations and page shrink on Android
The translation files get a content version in their URL, so a browser that cached an old file loads the new one. On touch screens the scroll lock of menus and selects no longer adds a right margin: Android Chrome reported one and the whole page became narrower.
This commit is contained in:
1 parent
6edb53162e
commit
25d2f0d0bd
4 files changed
+49
-1
No files matched your search
+2
-1
@@ -9,7 +9,8 @@ i18n.use(HttpBackend)
|
||||
lng: 'de',
|
||||
fallbackLng: 'en',
|
||||
backend: {
|
||||
loadPath: '/i18n/{{lng}}.json',
|
||||
// A browser kept an old file without its Cache-Control and showed raw keys; a new URL per version avoids that.
|
||||
loadPath: `/i18n/{{lng}}.json?v=${__TRANSLATIONS_VERSION__}`,
|
||||
},
|
||||
interpolation: {
|
||||
escapeValue: false
|
||||
|
||||
Reference in new issue
Block a user