mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
23 lines
562 B
JavaScript
23 lines
562 B
JavaScript
import {
|
|
translations,
|
|
langCodes,
|
|
approvedLanguages,
|
|
} from '../../../../website/server/libs/i18n';
|
|
|
|
describe('i18n', () => {
|
|
const listOfLocales = approvedLanguages.sort();
|
|
|
|
describe('translations', () => {
|
|
it('includes a translation object for each locale', () => {
|
|
listOfLocales.forEach(locale => {
|
|
expect(translations[locale]).to.be.an('object');
|
|
});
|
|
});
|
|
});
|
|
|
|
describe('langCodes', () => {
|
|
it('is a list of all the language codes', () => {
|
|
expect(langCodes.sort()).to.eql(listOfLocales);
|
|
});
|
|
});
|
|
});
|