summaryrefslogtreecommitdiff
path: root/web-ui/app/js/account_recovery.js
diff options
context:
space:
mode:
authorTayane Fernandes <tayane.rmf@gmail.com>2017-02-07 14:19:13 -0200
committerTayane Fernandes <tayane.rmf@gmail.com>2017-02-07 14:19:13 -0200
commit9cfc90ca67f5f46882ed21b460a01b6d50ffa79c (patch)
tree6c56b9aadcbb3806a7fb0484dd31cd5c10cbd06f /web-ui/app/js/account_recovery.js
parent3cd797a6da2f14d191006e5e110faf1f51ac3599 (diff)
[#922] Add i18n translations for react
with @anikarni
Diffstat (limited to 'web-ui/app/js/account_recovery.js')
-rw-r--r--web-ui/app/js/account_recovery.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/web-ui/app/js/account_recovery.js b/web-ui/app/js/account_recovery.js
index 441a8936..cd01378d 100644
--- a/web-ui/app/js/account_recovery.js
+++ b/web-ui/app/js/account_recovery.js
@@ -1,13 +1,18 @@
import React from 'react'
import { render } from 'react-dom'
-import Page from 'js/account_recovery/page'
import a11y from 'react-a11y'
+import { I18nextProvider } from 'react-i18next'
+
+import Page from 'js/account_recovery/page'
+import i18n from 'js/account_recovery/i18n'
import 'font-awesome/scss/font-awesome.scss'
if(process.env.NODE_ENV === 'development') a11y(React);
render(
- <Page/>,
+ <I18nextProvider i18n={ i18n }>
+ <Page/>
+ </I18nextProvider>,
document.getElementById('root')
);