mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Moving banned wordlist text to translations.
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import React from 'react';
|
||||
// import I18n from 'coral-framework/modules/i18n/i18n';
|
||||
// import translations from '../../translations.json';
|
||||
import I18n from 'coral-framework/modules/i18n/i18n';
|
||||
import translations from '../../translations.json';
|
||||
import styles from './Configure.css';
|
||||
import {
|
||||
Card
|
||||
} from 'react-mdl';
|
||||
|
||||
const Wordlist = ({wordlist, onChangeWordlist}) => <Card id={styles.bannedWordlist} shadow={2}>
|
||||
<p className={styles.bannedWordHeader}>Write the bannned words list</p>
|
||||
<p className={styles.bannedWordText}>Comments which contain these words or phrases, not seperated by commas and not
|
||||
case sensitive, will be automatically removed from the comment stream.</p>
|
||||
<p className={styles.bannedWordHeader}>{lang.t('configure.banned-word-header')}</p>
|
||||
<p className={styles.bannedWordText}>{lang.t('configure.banned-word-text')}</p>
|
||||
<textarea
|
||||
rows={5}
|
||||
type='text'
|
||||
@@ -20,4 +19,4 @@ const Wordlist = ({wordlist, onChangeWordlist}) => <Card id={styles.bannedWordli
|
||||
|
||||
export default Wordlist;
|
||||
|
||||
// const lang = new I18n(translations);
|
||||
const lang = new I18n(translations);
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
"include-text": "Include your text here.",
|
||||
"comment-settings": "Comment Settings",
|
||||
"embed-comment-stream": "Embed Comment Stream",
|
||||
"banned-word-header": "Write the bannned words list",
|
||||
"banned-word-text": "Comments which contain these words or phrases, not seperated by commas and not case sensitive, will be automatically removed from the comment stream.",
|
||||
"wordlist": "Banned words list",
|
||||
"save-changes": "Save Changes",
|
||||
"copy-and-paste": "Copy and paste code below into your CMS to embed your comment box in your articles",
|
||||
@@ -72,7 +74,9 @@
|
||||
"include-text": "Incluir tu texto aqui.",
|
||||
"comment-settings": "Configuración de Comentarios",
|
||||
"embed-comment-stream": "Colocar Hilo de Comentarios",
|
||||
"wordlist": "tracundeme",
|
||||
"wordlist": "¡traduceme!",
|
||||
"banned-word-header": "¡traduceme!",
|
||||
"banned-word-text": "¡traduceme!",
|
||||
"save-changes": "Guardar Cambios",
|
||||
"copy-and-paste": "Copiar y pegar el código de más abajo en tu CMS para colocar la caja de comentarios en tus articulos",
|
||||
"moderate": "Moderar",
|
||||
|
||||
Reference in New Issue
Block a user