From 5e1dfb98c649a5b62311e7d2168e993c0d041de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Charignon?= Date: Wed, 4 Apr 2018 12:10:34 +0200 Subject: [PATCH] :alien: translate the suggestion tooltip I had to force the default language to a value (I forced it to 'fr') so that the fr resource is effectively loaded in the first place --- source/components/conversation/Input.js | 20 ++++++++++---------- source/i18n.js | 21 ++++++++++++--------- source/locales/en.yaml | 2 +- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/source/components/conversation/Input.js b/source/components/conversation/Input.js index 41969829e..939fd1f29 100644 --- a/source/components/conversation/Input.js +++ b/source/components/conversation/Input.js @@ -11,8 +11,8 @@ import SendButton from './SendButton' @translate() export default class Input extends Component { static contextTypes = { - i18n: PropTypes.object.isRequired - } + i18n: PropTypes.object.isRequired + } state = { lastValue: '' } @@ -54,8 +54,7 @@ export default class Input extends Component { )} @@ -97,8 +96,7 @@ export default class Input extends Component { name={'inversions.' + dottedName} onChange={(e, newValue, previousFieldName) => setFormValue('', previousFieldName) - } - > + }> {inversion.inversions.map(({ name, title, dottedName }) => (