mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
Translations
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user