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 => {
{/* 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>
"defaultMessage": "Push notifications",
"id": "notifications.column_settings.push"
},
+ {
+ "defaultMessage": "Desktop notifications are unavailable due to previously denied browser permissions request",
+ "id": "notifications.permission_denied"
+ },
{
"defaultMessage": "Quick filter bar",
"id": "notifications.column_settings.filter_bar.category"
{
"defaultMessage": "Poll results:",
"id": "notifications.column_settings.poll"
+ },
+ {
+ "defaultMessage": "New toots:",
+ "id": "notifications.column_settings.status"
}
],
"path": "app/javascript/mastodon/features/notifications/components/column_settings.json"
],
"path": "app/javascript/mastodon/features/notifications/components/notification.json"
},
+ {
+ "descriptors": [
+ {
+ "defaultMessage": "Never miss a thing",
+ "id": "notifications_permission_banner.title"
+ },
+ {
+ "defaultMessage": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
+ "id": "notifications_permission_banner.how_to_control"
+ },
+ {
+ "defaultMessage": "Enable desktop notifications",
+ "id": "notifications_permission_banner.enable"
+ }
+ ],
+ "path": "app/javascript/mastodon/features/notifications/components/notifications_permission_banner.json"
+ },
{
"descriptors": [
{
{
"defaultMessage": "Clear notifications",
"id": "notifications.clear"
+ },
+ {
+ "defaultMessage": "Desktop notifications can't be enabled, as browser permission has been denied before",
+ "id": "notifications.permission_denied_alert"
}
],
"path": "app/javascript/mastodon/features/notifications/containers/column_settings_container.json"
},
{
"descriptors": [
+ {
+ "defaultMessage": "{number, plural, one {# minute} other {# minutes}}",
+ "id": "intervals.full.minutes"
+ },
+ {
+ "defaultMessage": "{number, plural, one {# hour} other {# hours}}",
+ "id": "intervals.full.hours"
+ },
+ {
+ "defaultMessage": "{number, plural, one {# day} other {# days}}",
+ "id": "intervals.full.days"
+ },
+ {
+ "defaultMessage": "Indefinite",
+ "id": "mute_modal.indefinite"
+ },
{
"defaultMessage": "Are you sure you want to mute {name}?",
"id": "confirmations.mute.message"
"defaultMessage": "Hide notifications from this user?",
"id": "mute_modal.hide_notifications"
},
+ {
+ "defaultMessage": "Duration",
+ "id": "mute_modal.duration"
+ },
{
"defaultMessage": "Cancel",
"id": "confirmation_modal.cancel"
"media_gallery.toggle_visible": "Hide {number, plural, one {image} other {images}}",
"missing_indicator.label": "Not found",
"missing_indicator.sublabel": "This resource could not be found",
- "mute_modal.hide_notifications": "Hide notifications from this user?",
"mute_modal.duration": "Duration",
+ "mute_modal.hide_notifications": "Hide notifications from this user?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "Mobile apps",
"navigation_bar.blocks": "Blocked users",
"notifications.column_settings.reblog": "Boosts:",
"notifications.column_settings.show": "Show in column",
"notifications.column_settings.sound": "Play sound",
+ "notifications.column_settings.status": "New toots:",
"notifications.filter.all": "All",
"notifications.filter.boosts": "Boosts",
"notifications.filter.favourites": "Favourites",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} notifications",
"notifications.mark_as_read": "Mark every notification as read",
+ "notifications.permission_denied": "Cannot enable desktop notifications as permission has been denied.",
+ "notifications.permission_denied_alert": "Desktop notifications can't be enabled, as browser permission has been denied before",
+ "notifications_permission_banner.enable": "Enable desktop notifications",
+ "notifications_permission_banner.how_to_control": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
+ "notifications_permission_banner.title": "Never miss a thing",
"picture_in_picture.restore": "Put it back",
"poll.closed": "Closed",
"poll.refresh": "Refresh",