Translations

This commit is contained in:
Chi Vinh Le
2017-10-02 22:22:00 +07:00
parent c2f22bbf98
commit d3d7f909d8
8 changed files with 17 additions and 27 deletions
@@ -30,7 +30,7 @@ class FlagDetails extends Component {
return (
<CommentDetail
icon={'flag'}
header={`${t('community.flags')} (${Object.keys(summaries).length})`}
header={`${t('talk-plugin-flag-details.flags')} (${Object.keys(summaries).length})`}
info={
<ul className={styles.info}>
{reasons.map((reason) =>
@@ -1,3 +1,6 @@
en:
talk-plugin-fag-details:
talk-plugin-flag-details:
flags: Flags
es:
talk-plugin-flag-details:
flags: Reportes
@@ -4,18 +4,19 @@ import {isToxic} from '../utils';
import styles from './ToxicDetail.css';
import cn from 'classnames';
import PropTypes from 'prop-types';
import {t} from 'plugin-api/beta/client/services';
const getInfo = (toxicity, actions) => {
const toxic = isToxic(actions);
let text = 'Unlikely';
let text = t('talk-plugin-toxic-comments.unlikely');
if (toxicity > 0.8) {
text = 'Highly Likely';
text = t('talk-plugin-toxic-comments.highly_likely');
}
else if (toxicity >= 0.5) {
text = 'Possibly';
text = t('talk-plugin-toxic-comments.possibly');
}
else if (toxicity >= 0.7) {
text = 'Likely';
text = t('talk-plugin-toxic-comments.likely');
}
return (
@@ -31,7 +32,7 @@ const getInfo = (toxicity, actions) => {
const ToxicLabel = ({comment: {actions, toxicity}}) => (
<CommentDetail
icon={'add_box'}
header={'Toxic Comment'}
header={t('talk-plugin-toxic-comments.toxic_comment')}
info={getInfo(toxicity, actions)}
/>
);
@@ -4,6 +4,11 @@ en:
Are you sure? The language in this comment might violate our community guidelines.
You can edit the comment or submit it for moderator review.
talk-plugin-toxic-comments:
unlikely: Unlikely
highly_likely: Highly Likely
possibly: Possibly
likely: Likely
toxic_comment: Toxic Comment
still_toxic: |
This edited comment might still violate our community guidelines.
Our moderation team will review your comment shortly.