[ui] SunsetPlace: Ask where the sunset is, and say when tonight's sunset is

This commit is contained in:
2026-11-02 00:01:51 +01:00
parent 3ed91eea7b
commit 77a865f625
8 changed files with 526 additions and 2 deletions
+21
View File
@@ -10,6 +10,27 @@ export const en = {
/** The one line on the Phase 0 page. True, calm, and asks nothing. */
preparing: 'The garden is being prepared.'
},
sunset: {
/** ROADMAP Phase 1, word for word. */
question: 'Where do you want your sunset?',
why: 'The garden follows the real sun. Choose a town near you. It is kept on this device only.',
searchLabel: 'Town or city',
/** Said aloud as the list changes. Never "not found": a small town is not a mistake. */
found: (n: number): string => (n === 0 ? 'No town by that name here. A larger one nearby will do.' : n === 1 ? 'One town' : `${n} towns`),
skip: (guess: string): string => `Not now. Use ${guess}`,
skipNoGuess: 'Not now',
keep: (town: string): string => `Keep ${town}`,
change: 'Change town',
choose: 'Choose a town',
tonight: (time: string, town: string): string => `Tonight the sun sets at ${time} in ${town}.`,
tomorrow: (time: string, town: string): string => `Tomorrow the sun sets at ${time} in ${town}.`,
polarDay: (time: string, town: string): string => `In ${town} the sun stays up tonight. The light is lowest at ${time}.`,
polarNight: (time: string, town: string): string => `In ${town} the sun stays below the horizon today. The twilight is brightest at ${time}.`,
guessed: "A guess from this device's time zone.",
noTown: 'Choose a town to see when the sun sets.',
/** When the device refuses to keep anything (a private window). Calm, and true. */
notKept: 'This device could not keep your choice, so the garden will ask again next time.'
},
letter: {
/** The help section's name (ROADMAP §1). The letter itself is the author's, in docs/LETTER.md. */
title: 'A Letter from the Gardener',