EventMapper/assets/scripts/KaplayMap/localization.js

74 lines
2.5 KiB
JavaScript
Raw Normal View History

2024-06-03 03:54:02 +00:00
export default new Map([
[
2024-06-04 22:54:40 +00:00
"en-US",
2024-06-03 03:54:02 +00:00
{
2024-06-04 22:54:40 +00:00
floors_header: "Floors",
2024-06-03 03:54:02 +00:00
date_starting: "Starting",
date_started: "Started",
date_summary: (prefix, time) => `${prefix} ${time}`,
2024-06-09 12:23:14 +00:00
list_index: (index) => `, ${index}`,
2024-06-03 03:54:02 +00:00
parenthesis: (content) => `(${content})`,
2024-06-09 12:23:14 +00:00
openParenthesis: "(",
closeParenthesis: ")",
2024-06-04 22:54:40 +00:00
separator: (p1, p2) => `${p1} - ${p2}`,
2024-06-03 03:54:02 +00:00
hours_long: (hours) =>
hours == 1 ? `${hours} hour long` : `${hours} hours long`,
minutes_long: (hours) =>
hours == 1 ? `${hours} minute long` : `${hours} minutes long`,
events_in: (name) => `Events (${name})`,
2024-06-04 22:54:40 +00:00
event_in: (location) => `In ${location}`,
2024-06-03 03:54:02 +00:00
view_events_in: (name) => `Return to events in ${name}`,
minimize: "Toggle event panel docking",
2024-06-04 22:54:40 +00:00
event_inspector_header: (name) => `Event ${name}`,
2024-06-10 17:37:53 +00:00
event_inspector_host: "Host: ",
2024-06-04 22:54:40 +00:00
event_inspector_back: "Return to events panel",
event_inspector_minimize: "Toggle event inspector docking",
2024-06-09 12:23:14 +00:00
zoom_in_button: "Zoom in",
zoom_out_button: "Zoom out",
menu_search_button: "Search events",
menu_language_button: "Change language",
menu_about_button: "About EventMapper",
search_dialog_close_button: "Close search",
search_dialog_search_button: "Run search",
search_dialog_header_title: "Search Events",
2024-06-10 17:37:53 +00:00
search_dialog_search_tags: "Tags",
search_dialog_search_by: "Search By",
search_filter_buttons: {
name: {
label: "Title",
title: "Search by title.",
},
description: {
label: "Description",
title: "Search by text found in the description.",
},
host: {
label: "Host",
title: "Search by who is hosting the event.",
},
url: {
label: "URL",
title: "Search by where the event links.",
},
floor: {
label: "Floor",
title: "Search by what floor the event is on.",
},
room: {
label: "Room",
title: "Search by what room the event is in.",
},
},
2024-06-09 12:23:14 +00:00
search_filters: {
2024-06-10 17:37:53 +00:00
name: ({ src }) => `Found by title`, // Already present
description: ({ src }) => `Found by description`, // Too long to be present
host: ({ src }) => `Found by host ${src}`,
2024-06-09 12:23:14 +00:00
url: ({ src }) => `Found by URL ${src}`,
floor: ({ src }) => `Found by floor ${src}`,
room: ({ src }) => `Found by room ${src}`,
},
regexAnyWordCharacter: /[^\w]/g,
},
],
2024-06-03 03:54:02 +00:00
]);