diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-12 14:46:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 14:46:21 +0200 |
commit | e0c3ed29d8fbd22290a050596ddb9b01dfeae396 (patch) | |
tree | 7d9cebea053cd72574f9129f95da1bffadbb73b6 /app/javascript/mastodon/actions/notifications.js | |
parent | 2991a7cfe685ca9b42230b7030b9e7d0ece94c88 (diff) |
Fix locales again (#3010)
* Normalize locales * Restore "mention" locale key
Diffstat (limited to 'app/javascript/mastodon/actions/notifications.js')
-rw-r--r-- | app/javascript/mastodon/actions/notifications.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js index bb494924d..323e2e9b6 100644 --- a/app/javascript/mastodon/actions/notifications.js +++ b/app/javascript/mastodon/actions/notifications.js @@ -2,6 +2,7 @@ import api, { getLinks } from '../api' import Immutable from 'immutable'; import IntlMessageFormat from 'intl-messageformat'; import { fetchRelationships } from './accounts'; +import { defineMessages } from 'react-intl'; export const NOTIFICATIONS_UPDATE = 'NOTIFICATIONS_UPDATE'; @@ -16,6 +17,10 @@ export const NOTIFICATIONS_EXPAND_FAIL = 'NOTIFICATIONS_EXPAND_FAIL'; export const NOTIFICATIONS_CLEAR = 'NOTIFICATIONS_CLEAR'; export const NOTIFICATIONS_SCROLL_TOP = 'NOTIFICATIONS_SCROLL_TOP'; +const messages = defineMessages({ + mention: { id: 'notification.mention', defaultMessage: '{name} mentioned you' }, +}); + const fetchRelatedRelationships = (dispatch, notifications) => { const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id); |