Review fixes

This commit is contained in:
Nithin David Thomas
2024-02-15 21:45:38 +05:30
parent e0b60eb3b6
commit 90a6a9d058
5 changed files with 16 additions and 8 deletions
@@ -8,8 +8,8 @@ describe('getBrowserLocale', () => {
configurable: true,
});
const languages = [{ iso_639_1_code: 'en' }, { iso_639_1_code: 'en-US' }];
expect(getBrowserLocale(languages)).toBe('en-US');
const languages = [{ iso_639_1_code: 'en' }, { iso_639_1_code: 'en_US' }];
expect(getBrowserLocale(languages)).toBe('en');
});
it('should return the correct locale code when only a partial match is found', () => {