mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
Use snake case for new translations
This commit is contained in:
@@ -7,19 +7,19 @@ import t from 'coral-framework/services/i18n';
|
||||
|
||||
const stages = [
|
||||
{
|
||||
title: 'rejectUsername.title_reject',
|
||||
description: 'rejectUsername.description_reject',
|
||||
title: 'reject_username.title_reject',
|
||||
description: 'reject_username.description_reject',
|
||||
options: {
|
||||
'j': 'rejectUsername.no_cancel',
|
||||
'k': 'rejectUsername.yes_suspend'
|
||||
'j': 'reject_username.no_cancel',
|
||||
'k': 'reject_username.yes_suspend'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'rejectUsername.title_notify',
|
||||
description: 'rejectUsername.description_notify',
|
||||
title: 'reject_username.title_notify',
|
||||
description: 'reject_username.description_notify',
|
||||
options: {
|
||||
'j': 'bandialog.cancel',
|
||||
'k': 'rejectUsername.send'
|
||||
'k': 'reject_username.send'
|
||||
}
|
||||
}
|
||||
];
|
||||
@@ -35,7 +35,7 @@ class RejectUsernameDialog extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.setState({email: t('rejectUsername.email_message_reject'), about: t('rejectUsername.username')});
|
||||
this.setState({email: t('reject_username.email_message_reject'), about: t('reject_username.username')});
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -76,18 +76,18 @@ class RejectUsernameDialog extends Component {
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onCancel={handleClose}
|
||||
title={t('rejectUsername.suspend_user')}>
|
||||
title={t('reject_username.suspend_user')}>
|
||||
<div className={styles.title}>
|
||||
{t(stages[stage].title, t('rejectUsername.username'))}
|
||||
{t(stages[stage].title, t('reject_username.username'))}
|
||||
</div>
|
||||
<div className={styles.container}>
|
||||
<div className={styles.description}>
|
||||
{t(stages[stage].description, t('rejectUsername.username'))}
|
||||
{t(stages[stage].description, t('reject_username.username'))}
|
||||
</div>
|
||||
{
|
||||
stage === 1 &&
|
||||
<div className={styles.writeContainer}>
|
||||
<div className={styles.emailMessage}>{t('rejectUsername.write_message')}</div>
|
||||
<div className={styles.emailMessage}>{t('reject_username.write_message')}</div>
|
||||
<div className={styles.emailContainer}>
|
||||
<textarea
|
||||
rows={5}
|
||||
@@ -100,7 +100,7 @@ class RejectUsernameDialog extends Component {
|
||||
<div className={styles.modalButtons}>
|
||||
{Object.keys(stages[stage].options).map((key, i) => (
|
||||
<Button key={i} onClick={this.onActionClick(stage, i)}>
|
||||
{t(stages[stage].options[key], t('rejectUsername.username'))}
|
||||
{t(stages[stage].options[key], t('reject_username.username'))}
|
||||
</Button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -345,7 +345,7 @@ en:
|
||||
description_notify: "Suspending this user will temporarily disable their account and hide all of their comments on the site."
|
||||
write_message: "Write a message"
|
||||
send: Send
|
||||
rejectUsername:
|
||||
reject_username:
|
||||
username: username
|
||||
no_cancel: "No cancel"
|
||||
description_reject: "Would you like to temporarily ban this user because of their {0}? Doing so will temporarily hide their comments until they rewrite their {0}."
|
||||
|
||||
+1
-1
@@ -368,7 +368,7 @@ es:
|
||||
description_notify: "Suspender a este usuario va a deshabilitar temporalmente su cuenta y ocultar todos sus comentarios en el sitio."
|
||||
write_message: "Escribir un mensaje"
|
||||
send: "Enviar"
|
||||
rejectUsername:
|
||||
reject_username:
|
||||
username: nombre de usuario
|
||||
no_cancel: "No cancelar"
|
||||
description_reject: "¿Quiere suspender temporalmente a este usuario por su {0}? Hacerlo va a ocultar temporalmente sus comentarios hasta que edite su {0}."
|
||||
|
||||
Reference in New Issue
Block a user