Fix breadcrumb and add test for locales (#49)

* test(unit): add test to check for locale consistency

* fix(breadcrumb): translate lessons route
This commit is contained in:
Benedikt Rötsch
2017-11-09 11:25:02 +01:00
parent ae599ccdfe
commit 4b0503b622
4 changed files with 13 additions and 3 deletions

11
test/unit/locales.test.js Normal file
View File

@@ -0,0 +1,11 @@
const germanLocales = require('../../i18n/locales/de-DE.json')
const englishLocales = require('../../i18n/locales/en-US.json')
describe('locales', () => {
test('all labels coexist in all locale files', async () => {
const germanKeys = Object.keys(germanLocales)
const englishKeys = Object.keys(englishLocales)
expect(germanKeys).toEqual(englishKeys)
})
})