diff --git a/frontend/src/Components/Filter/Builder/PrivacyFilterBuilderRowValue.js b/frontend/src/Components/Filter/Builder/PrivacyFilterBuilderRowValue.js index 4004f0ced..4f6250151 100644 --- a/frontend/src/Components/Filter/Builder/PrivacyFilterBuilderRowValue.js +++ b/frontend/src/Components/Filter/Builder/PrivacyFilterBuilderRowValue.js @@ -3,9 +3,24 @@ import translate from 'Utilities/String/translate'; import FilterBuilderRowValue from './FilterBuilderRowValue'; const privacyTypes = [ - { id: 'public', name: translate('Public') }, - { id: 'private', name: translate('Private') }, - { id: 'semiPrivate', name: translate('SemiPrivate') } + { + id: 'public', + get name() { + return translate('Public'); + } + }, + { + id: 'private', + get name() { + return translate('Private'); + } + }, + { + id: 'semiPrivate', + get name() { + return translate('SemiPrivate'); + } + } ]; function PrivacyFilterBuilderRowValue(props) { diff --git a/frontend/src/Components/keyboardShortcuts.js b/frontend/src/Components/keyboardShortcuts.js index b576a988c..8513a65eb 100644 --- a/frontend/src/Components/keyboardShortcuts.js +++ b/frontend/src/Components/keyboardShortcuts.js @@ -6,37 +6,51 @@ import translate from 'Utilities/String/translate'; export const shortcuts = { OPEN_KEYBOARD_SHORTCUTS_MODAL: { key: '?', - name: translate('OpenThisModal') + get name() { + return translate('OpenThisModal'); + } }, CLOSE_MODAL: { key: 'Esc', - name: translate('CloseCurrentModal') + get name() { + return translate('CloseCurrentModal'); + } }, ACCEPT_CONFIRM_MODAL: { key: 'Enter', - name: translate('AcceptConfirmationModal') + get name() { + return translate('AcceptConfirmationModal'); + } }, MOVIE_SEARCH_INPUT: { key: 's', - name: translate('FocusSearchBox') + get name() { + return translate('FocusSearchBox'); + } }, SAVE_SETTINGS: { key: 'mod+s', - name: translate('SaveSettings') + get name() { + return translate('SaveSettings'); + } }, SCROLL_TOP: { key: 'mod+home', - name: translate('MovieIndexScrollTop') + get name() { + return translate('MovieIndexScrollTop'); + } }, SCROLL_BOTTOM: { key: 'mod+end', - name: translate('MovieIndexScrollBottom') + get name() { + return translate('MovieIndexScrollBottom'); + } } }; diff --git a/frontend/src/History/HistoryRow.js b/frontend/src/History/HistoryRow.js index c47160f23..d260690a4 100644 --- a/frontend/src/History/HistoryRow.js +++ b/frontend/src/History/HistoryRow.js @@ -21,17 +21,17 @@ const historyParameters = [ { key: historyDataTypes.TRAKT_ID, title: 'Trakt' }, { key: historyDataTypes.R_ID, title: 'TvRage' }, { key: historyDataTypes.TVMAZE_ID, title: 'TvMaze' }, - { key: historyDataTypes.SEASON, title: translate('Season') }, - { key: historyDataTypes.EPISODE, title: translate('Episode') }, - { key: historyDataTypes.ARTIST, title: translate('Artist') }, - { key: historyDataTypes.ALBUM, title: translate('Album') }, - { key: historyDataTypes.LABEL, title: translate('Label') }, - { key: historyDataTypes.TRACK, title: translate('Track') }, - { key: historyDataTypes.YEAR, title: translate('Year') }, - { key: historyDataTypes.GENRE, title: translate('Genre') }, - { key: historyDataTypes.AUTHOR, title: translate('Author') }, - { key: historyDataTypes.TITLE, title: translate('Title') }, - { key: historyDataTypes.PUBLISHER, title: translate('Publisher') } + { key: historyDataTypes.SEASON, title: () => translate('Season') }, + { key: historyDataTypes.EPISODE, title: () => translate('Episode') }, + { key: historyDataTypes.ARTIST, title: () => translate('Artist') }, + { key: historyDataTypes.ALBUM, title: () => translate('Album') }, + { key: historyDataTypes.LABEL, title: () => translate('Label') }, + { key: historyDataTypes.TRACK, title: () => translate('Track') }, + { key: historyDataTypes.YEAR, title: () => translate('Year') }, + { key: historyDataTypes.GENRE, title: () => translate('Genre') }, + { key: historyDataTypes.AUTHOR, title: () => translate('Author') }, + { key: historyDataTypes.TITLE, title: () => translate('Title') }, + { key: historyDataTypes.PUBLISHER, title: () => translate('Publisher') } ]; class HistoryRow extends Component {