test(current-language-util): set local storage item 'locale' to the local storage language if it is specified

This commit is contained in:
2026-06-03 20:21:06 +02:00
committed by Gitea
parent 80bc8339ed
commit 33dfee951a
@@ -47,5 +47,9 @@ test.for(locales)('returns the language $expected for navigator language $naviga
configurable: true configurable: true
}); });
if (localStorageLanguage) {
localStorage.setItem('locale', localStorageLanguage);
};
expect(getCurrentLanguage()).toBe(expected); expect(getCurrentLanguage()).toBe(expected);
}); });