Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions src/components/OpenFileDialog/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,10 @@ const texts = {
),
newButtonLabel: i18n.t('New map'),
},
[AO_TYPE_EVENT_VISUALIZATION]: {
modalTitle: i18n.t('Open a line list'),
loadingText: i18n.t('Loading line lists'),
errorTitle: i18n.t("Couldn't load line lists"),
errorText: i18n.t(
'There was a problem loading line lists. Try again or contact your system administrator.'
),
noDataText: i18n.t(
'No line lists found. Click New line list to get started.'
),
noFilteredDataText: i18n.t(
"No line lists found. Try adjusting your search or filter options to find what you're looking for."
),
newButtonLabel: i18n.t('New line list'),
},
}

// Event visualizations use the same texts as visualizations
texts[AO_TYPE_EVENT_VISUALIZATION] = texts[AO_TYPE_VISUALIZATION]

export const getTranslatedString = (type, key) =>
(texts[type] || texts[NO_TYPE])[key]
Loading