2018-12-29 20:35:04 +01:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupTest } from 'ember-qunit';
|
2016-06-20 19:28:10 +02:00
|
|
|
import localesMeta from 'croodle/locales/meta';
|
2015-11-26 13:33:40 +01:00
|
|
|
|
2020-01-30 00:23:12 +01:00
|
|
|
module('Integration | translations', function(hooks) {
|
|
|
|
setupTest(hooks);
|
2015-11-26 13:33:40 +01:00
|
|
|
|
2018-12-29 20:35:04 +01:00
|
|
|
test('all locales have an entry in locales/meta', function(assert) {
|
2020-01-30 00:23:12 +01:00
|
|
|
let intl = this.owner.lookup('service:intl');
|
|
|
|
|
|
|
|
intl.locales.forEach((locale) => {
|
|
|
|
assert.ok(Object.keys(localesMeta).includes(locale), `locales meta data is present for ${locale}`);
|
|
|
|
});
|
2018-12-29 20:35:04 +01:00
|
|
|
});
|
2016-06-20 19:28:10 +02:00
|
|
|
});
|