diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-15 11:43:58 -0200 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-02-21 13:32:01 -0300 |
commit | d7dbc1dc61f74f7bd74464bda5e4e0051f062352 (patch) | |
tree | 918cf306829f768e1cc110d942b32777ac079eb1 /web-ui/src/login/app.js | |
parent | f21558d8ceea177a26096e4922eef02413394058 (diff) |
[#907] Translates login page to pt_BR
Diffstat (limited to 'web-ui/src/login/app.js')
-rw-r--r-- | web-ui/src/login/app.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/web-ui/src/login/app.js b/web-ui/src/login/app.js index e6ac3192..dda6148c 100644 --- a/web-ui/src/login/app.js +++ b/web-ui/src/login/app.js @@ -18,18 +18,22 @@ import React from 'react'; import { translate } from 'react-i18next'; -const App = () => ( +export const App = ({ t }) => ( <form className='standard' id='login_form' action='/login' method='post'> <input type='text' name='username' id='email' className='text-field' - placeholder='username' autoFocus='' + placeholder={t('login.email')} autoFocus='' /> <input type='password' name='password' id='password' className='text-field' - placeholder='password' autoComplete='off' + placeholder={t('login.password')} autoComplete='off' /> - <input type='submit' name='login' value='Login' className='button' /> + <input type='submit' name='login' value={t('login.submit')} className='button' /> </form> ); +App.propTypes = { + t: React.PropTypes.func.isRequired +}; + export default translate('', { wait: true })(App); |