Fixed missing (german) url routes

This commit is contained in:
Christoph Lienhard 2020-06-12 15:22:09 +02:00
parent 3ca43c5c0d
commit 569fd2088b
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { DEFAULT_LOCALE } from '@/config'
import i18n from '@/i18n'
import localI18n from './i18n'
import { storageAvailable } from '@/helper/storage'
import { getTranslatedTitles, getTranslatedAliases } from '@/i18n/helper'
import { getTranslatedAliases, getTranslatedTitles } from '@/i18n/helper'
function hasAnswers (to, from, next) {
if (storageAvailable('sessionStorage') && !sessionStorage.getItem('euromat-answers')) {
@ -26,7 +26,7 @@ export default [
}
},
{
path: 'emphasis',
path: localI18n[DEFAULT_LOCALE].emphasis.url,
alias: getTranslatedAliases(localI18n, 'emphasis'),
name: 'emphasis',
component: () => import('./components/emphasis' /* webpackChunkName: "euromat" */),
@ -36,7 +36,7 @@ export default [
}
},
{
path: 'results',
path: localI18n[DEFAULT_LOCALE].results.url,
alias: getTranslatedAliases(localI18n, 'results'),
name: 'results',
component: () => import('./components/results' /* webpackChunkName: "euromat" */),