From 59182e75d363d600fedadbeb26a4ae73298b40ab Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 8 Dec 2016 16:32:39 -0300 Subject: [PATCH] Translations --- .../components/ConfigureCommentStream.js | 20 +++++++++------- client/coral-configure/translations.js | 0 client/coral-configure/translations.json | 24 +++++++++++++++++++ 3 files changed, 35 insertions(+), 9 deletions(-) delete mode 100644 client/coral-configure/translations.js create mode 100644 client/coral-configure/translations.json diff --git a/client/coral-configure/components/ConfigureCommentStream.js b/client/coral-configure/components/ConfigureCommentStream.js index a413054cd..507c764d7 100644 --- a/client/coral-configure/components/ConfigureCommentStream.js +++ b/client/coral-configure/components/ConfigureCommentStream.js @@ -2,19 +2,21 @@ import React from 'react'; import {Button, Checkbox} from 'coral-ui'; import styles from './ConfigureCommentStream.css'; +import I18n from 'coral-framework/modules/i18n/i18n'; +import translations from '../translations.json'; +const lang = new I18n(translations); + export default ({handleChange, handleApply, changed, ...props}) => (
-

Configure Comment Stream

-

- As an admin you may customize the settings for the comment stream for this article -

+

{lang.t('configureCommentStream.title')}

+

{lang.t('configureCommentStream.description')}