From 46e707ba51e041c0b0f2cc86518af5cd4970b2eb Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 22 Jun 2017 22:04:11 +0700 Subject: [PATCH] Use snake case for new translations --- .../components/RejectUsernameDialog.js | 26 +++++++++---------- locales/en.yml | 2 +- locales/es.yml | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/client/coral-admin/src/routes/Community/components/RejectUsernameDialog.js b/client/coral-admin/src/routes/Community/components/RejectUsernameDialog.js index 9ae039ac5..3ff764b2b 100644 --- a/client/coral-admin/src/routes/Community/components/RejectUsernameDialog.js +++ b/client/coral-admin/src/routes/Community/components/RejectUsernameDialog.js @@ -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')}>
- {t(stages[stage].title, t('rejectUsername.username'))} + {t(stages[stage].title, t('reject_username.username'))}
- {t(stages[stage].description, t('rejectUsername.username'))} + {t(stages[stage].description, t('reject_username.username'))}
{ stage === 1 &&
-
{t('rejectUsername.write_message')}
+
{t('reject_username.write_message')}