diff options
author | mayaeh <mayaeh@marimo-net.org> | 2020-10-16 04:24:58 +0900 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-10-21 21:49:46 +0200 |
commit | 5c60f7eaedbc2dc6184f8b2a4d99f58fdbd5b26b (patch) | |
tree | 3f5e2b47d242c4044f0cd69433501834399879d5 /app/javascript/flavours/glitch/features/ui | |
parent | 4ae4b0397430230d9d6fdf139ae59e2637859d13 (diff) |
[Glitch] Fix strings that could not be translated
Port fb5f3be18f50eb5657479196e29d13a905c43ac8 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/components/mute_modal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/components/mute_modal.js b/app/javascript/flavours/glitch/features/ui/components/mute_modal.js index 0c0322d39..7d25db316 100644 --- a/app/javascript/flavours/glitch/features/ui/components/mute_modal.js +++ b/app/javascript/flavours/glitch/features/ui/components/mute_modal.js @@ -12,6 +12,7 @@ const messages = defineMessages({ minutes: { id: 'intervals.full.minutes', defaultMessage: '{number, plural, one {# minute} other {# minutes}}' }, hours: { id: 'intervals.full.hours', defaultMessage: '{number, plural, one {# hour} other {# hours}}' }, days: { id: 'intervals.full.days', defaultMessage: '{number, plural, one {# day} other {# days}}' }, + indefinite: { id: 'mute_modal.indefinite', defaultMessage: 'Indefinite' }, }); const mapStateToProps = state => { @@ -112,7 +113,7 @@ class MuteModal extends React.PureComponent { {/* eslint-disable-next-line jsx-a11y/no-onchange */} <select value={muteDuration} onChange={this.changeMuteDuration}> - <option value={0}>{intl.formatMessage({ id: 'mute_modal.indefinite' })}</option> + <option value={0}>{intl.formatMessage(messages.indefinite)}</option> <option value={300}>{intl.formatMessage(messages.minutes, { number: 5 })}</option> <option value={1800}>{intl.formatMessage(messages.minutes, { number: 30 })}</option> <option value={3600}>{intl.formatMessage(messages.hours, { number: 1 })}</option> |