From 5898d8c2f9a4170b5f07fb728623a85e2554a755 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Sat, 28 Apr 2018 12:40:30 +0200 Subject: [PATCH] =?UTF-8?q?:alien:=20Traduit=20la=20pr=C3=A9sentation=20de?= =?UTF-8?q?s=20exemples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/rule/Examples.js | 19 ++++++++----------- source/locales/en.yaml | 5 +++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/source/components/rule/Examples.js b/source/components/rule/Examples.js index bc10ccdee..2a54f1d2e 100644 --- a/source/components/rule/Examples.js +++ b/source/components/rule/Examples.js @@ -1,4 +1,5 @@ import React, { Component } from 'react' +import { Trans, translate } from 'react-i18next' import { evolve, path, isEmpty, compose } from 'ramda' import classNames from 'classnames' import { connect } from 'react-redux' @@ -49,6 +50,7 @@ export let runExamples = (examples, rule, parsedRules) => setExample: compose(dispatch, setExample) }) ) +@translate() export default class Examples extends Component { render() { let { @@ -66,15 +68,10 @@ export default class Examples extends Component { return (

- Exemples de calcul{' '} - Cliquez sur un exemple pour le tester + Exemples de calcul{' '} + Cliquez sur un exemple pour le tester

- {isEmpty(examples) ? ( -

-