mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
782e613506
- GPX files drop onto the map or a day; the import lands on that day - wanderer connection per user in Integrations; the workspace offers the user's own trails only, behind an admin switch under the Tours addon - wanderer difficulty is stored on the SAC scale (T1 to T3), backfilled - a GPX or wanderer import can be planned as an editable tour, either in place (the recorded track is kept and can be restored) or as a new tour that remembers the import it came from - rails, rows and detail dialog follow the plan sidebar's cards and badges - admin addon shelves with more than one row fold, collapsed by default - reverse-geocoded waypoint names are cached on the device
8 lines
378 B
TypeScript
8 lines
378 B
TypeScript
type Translate = (key: string, params?: Record<string, unknown>) => string;
|
|
|
|
/** A wanderer reason code as a sentence in the reader's language; an unknown code still gets one. */
|
|
export function wandererErrorText(t: Translate, code: string): string {
|
|
const text = t(`wanderer.error.${code}`);
|
|
return text === `wanderer.error.${code}` ? t('wanderer.error.unknown') : text;
|
|
}
|