Add current language utility unit test #106

Merged
jakob.scheid merged 17 commits from testing/current-language-util into main 2026-06-04 12:41:55 +02:00
Showing only changes of commit 2117c28606 - Show all commits
@@ -39,4 +39,8 @@ test.for([
['de-DE-u-co-phonebk', 'de'], ['de-DE-u-co-phonebk', 'de'],
['zh-Hant-TW-u-co-phonebk', 'zh'] ['zh-Hant-TW-u-co-phonebk', 'zh']
])('returns the language \'%s\'', ([locale, language]) => { ])('returns the language \'%s\'', ([locale, language]) => {
Object.defineProperty(navigator, 'language', {
value: language,
configurable: true
});
}); });