Add missing translations from transifex (#11367)

* Add missing translations from transifex

* update i18n tests

* fix lint error
This commit is contained in:
Phillip Thelen
2019-09-29 18:46:01 +02:00
committed by Matteo Pagliazzi
parent e1abeeb78a
commit c4f44fce4c
1521 changed files with 292711 additions and 19 deletions

View File

@@ -1,27 +1,11 @@
import {
translations,
localePath,
langCodes,
approvedLanguages,
} from '../../../../website/server/libs/i18n';
import fs from 'fs';
import path from 'path';
describe('i18n', () => {
let listOfLocales = [];
before((done) => {
fs.readdir(localePath, (err, files) => {
if (err) return done(err);
files.forEach((file) => {
if (fs.statSync(path.join(localePath, file)).isDirectory() === false) return;
listOfLocales.push(file);
});
listOfLocales = listOfLocales.sort();
done();
});
});
let listOfLocales = approvedLanguages.sort();
describe('translations', () => {
it('includes a translation object for each locale', () => {