From 6e8b28cc8a95a479e850dfb6a5a357692200760d Mon Sep 17 00:00:00 2001 From: liz Date: Tue, 9 Jan 2018 14:03:09 +0800 Subject: [PATCH] Translation for hide off topic comments --- .../client/components/OffTopicFilter.js | 3 ++- .../talk-plugin-offtopic/client/translations.json | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/plugins/talk-plugin-offtopic/client/components/OffTopicFilter.js b/plugins/talk-plugin-offtopic/client/components/OffTopicFilter.js index 0ed882e28..f8d2ab6c6 100644 --- a/plugins/talk-plugin-offtopic/client/components/OffTopicFilter.js +++ b/plugins/talk-plugin-offtopic/client/components/OffTopicFilter.js @@ -1,5 +1,6 @@ import React from 'react'; import styles from './OffTopicFilter.css'; +import {t} from 'plugin-api/beta/client/services'; export default class OffTopicFilter extends React.Component { @@ -27,7 +28,7 @@ export default class OffTopicFilter extends React.Component { checked={this.props.checked} className={styles.input} /> - Hide Off-Topic Comments + {t('hide_off_topic')} ); } diff --git a/plugins/talk-plugin-offtopic/client/translations.json b/plugins/talk-plugin-offtopic/client/translations.json index d6a147e17..1d8d8afde 100644 --- a/plugins/talk-plugin-offtopic/client/translations.json +++ b/plugins/talk-plugin-offtopic/client/translations.json @@ -1,14 +1,18 @@ { "en": { - "off_topic": "Off Topic" + "off_topic": "Off Topic", + "hide_off_topic": "Hide Off-Topic Comments" }, "es": { - "off_topic": "Fuera de Topico" + "off_topic": "Fuera de Tópico", + "hide_off_topic": "Hide Off-Topic Comments" }, "zh_CN": { - "off_topic": "无关主题" + "off_topic": "无关主题", + "hide_off_topic": "隐藏与主题无关评论" }, "zh_TW": { - "off_topic": "無關主題" + "off_topic": "無關主題", + "hide_off_topic": "隱藏與主題無關評論" } }