From 4c7163539759aa271090b15fffaa3063aaa1ed07 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Sat, 26 Jul 2025 19:29:53 +0100 Subject: [PATCH 1/2] fix: Respect preffered language It was being overridden to polish. --- frontend/src/i18n.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js index 604dec8..600dd88 100644 --- a/frontend/src/i18n.js +++ b/frontend/src/i18n.js @@ -23,8 +23,7 @@ i18n // init i18next .init({ resources, - lng: 'pl', // Set Polish as default language - fallbackLng: 'en', + fallbackLng: 'pl', // Set Polish as default language debug: false, interpolation: { @@ -32,8 +31,8 @@ i18n }, detection: { - order: ['localStorage', 'navigator'], - caches: ['localStorage'], + order: ['cookie', 'localStorage', 'navigator'], + caches: ['localStorage', 'cookie'], }, }); From 22008db6a26badcda58dc3c40f481d2fbfd6d9e9 Mon Sep 17 00:00:00 2001 From: Tye <131195812+tye-exe@users.noreply.github.com> Date: Sat, 26 Jul 2025 21:24:37 +0100 Subject: [PATCH 2/2] fix: Unnecessary cookie Removed the unnecessary use of a cookie for storing data --- frontend/src/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js index 600dd88..1d3dedb 100644 --- a/frontend/src/i18n.js +++ b/frontend/src/i18n.js @@ -31,8 +31,8 @@ i18n }, detection: { - order: ['cookie', 'localStorage', 'navigator'], - caches: ['localStorage', 'cookie'], + order: ['localStorage', 'navigator'], + caches: ['localStorage'], }, });