mirror of https://github.com/grafana/grafana
I18n: Show languages in local names (#57367)
* I18n: Show languages in local names * fixed testpull/57397/head
parent
5c710a5590
commit
fc75076b72
@ -0,0 +1,14 @@ |
||||
import { uniqBy } from 'lodash'; |
||||
|
||||
import { LOCALES, VALID_LOCALES } from './constants'; |
||||
|
||||
describe('internationalization constants', () => { |
||||
it('should not have duplicate languages codes', () => { |
||||
const uniqLocales = uniqBy(LOCALES, (v) => v.code); |
||||
expect(LOCALES).toHaveLength(uniqLocales.length); |
||||
}); |
||||
|
||||
it('should have a correct list of valid locale codes', () => { |
||||
expect(VALID_LOCALES).toEqual(LOCALES.map((v) => v.code)); |
||||
}); |
||||
}); |
Loading…
Reference in new issue