// The first-run launcher's owner-chosen copy, shared by the launcher and the // welcome view that renders it. import { msg, t } from './i18n/index.js'; /** * Owner-selectable name for the fires/quakes mission. Flip this ONE constant to * re-label the tile; the alternates are pre-written so the choice is a taste * call at review time, not an edit. * @type {'ENVIRONMENTAL'|'EARTH_WATCH'|'ACTIVE_EVENTS'} */ export const ENVIRONMENTAL_LABEL_CHOICE = 'ENVIRONMENTAL'; const ENVIRONMENTAL_LABEL_KEYS = Object.freeze({ ENVIRONMENTAL: msg('ENVIRONMENTAL'), EARTH_WATCH: msg('EARTH WATCH'), ACTIVE_EVENTS: msg('ACTIVE EVENTS'), }); /** * @param {string} [choice] * @returns {{title: string}} The label set the constant above selects. */ export function environmentalLabel(choice = ENVIRONMENTAL_LABEL_CHOICE) { const key = ENVIRONMENTAL_LABEL_KEYS[choice] || ENVIRONMENTAL_LABEL_KEYS.ENVIRONMENTAL; return { title: t(key) }; } /** The status line between missions. */ export const FIRST_RUN_TIP = msg( 'Tip: the GEV MIC button in the dock lets you talk to the map.', );