Extracted strings and fixes on localization support

Language chooser in the UI
This commit is contained in:
Tomas Bures 2018-11-18 21:31:22 +01:00
parent 9f449c0a2f
commit dc7789c17b
126 changed files with 2919 additions and 2028 deletions

View file

@ -12,12 +12,12 @@ import mailtrainConfig from 'mailtrainConfig';
function getMenus(t) {
const subPaths = {
login: {
title: t('Sign in'),
title: t('signIn'),
link: '/account/login',
panelComponent: Login,
},
api: {
title: t('API'),
title: t('api'),
link: '/account/api',
panelComponent: API
}
@ -25,14 +25,14 @@ function getMenus(t) {
if (mailtrainConfig.isAuthMethodLocal) {
subPaths.forgot = {
title: t('Password reset'),
title: t('passwordReset-1'),
extraParams: [':username?'],
link: '/account/forgot',
panelComponent: Reset
};
subPaths.reset = {
title: t('Password reset'),
title: t('passwordReset-1'),
extraParams: [':username', ':resetToken'],
link: '/account/reset',
panelComponent: ResetLink
@ -41,7 +41,7 @@ function getMenus(t) {
return {
'account': {
title: t('Account'),
title: t('account'),
link: '/account',
panelComponent: Account,