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

@ -1,10 +1,10 @@
'use strict';
import React, {Component} from 'react';
import { withNamespaces } from 'react-i18next';
import { withTranslation } from './lib/i18n';
import { requiresAuthenticatedUser } from './lib/page';
@withNamespaces()
@withTranslation()
@requiresAuthenticatedUser
export default class List extends Component {
constructor(props) {
@ -16,7 +16,7 @@ export default class List extends Component {
return (
<div>
<h2>{t('home.welcome')}</h2>
<h2>{t('welcomeToMailtrain')}</h2>
<div>TODO: some dashboard</div>
</div>
);