test(current-language-util): add navigator.language configuration

This commit is contained in:
jakob.scheid authored and Gitea committed 2026-06-04 12:41:25 +02:00
1 parent 7f01a807b9
commit 2117c28606
1 file changed
+4
@@ -39,4 +39,8 @@ test.for([
['de-DE-u-co-phonebk', 'de'],
['zh-Hant-TW-u-co-phonebk', 'zh']
])('returns the language \'%s\'', ([locale, language]) => {
Object.defineProperty(navigator, 'language', {
value: language,
configurable: true
});
});