Skip to content

feat(translations): add the atlas first screen's near-me, locating and city-or-postcode labels - #1295

Merged
Ardnived merged 1 commit into
mainfrom
feat/atlas-first-screen-strings
Nov 27, 2026
Merged

Ardnived merged 1 commit into
mainfrom
feat/atlas-first-screen-strings

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • sy-atlas-translations gains the four strings SahajAtlasWeb's redesigned first screen reads: "Classes near %{city}", "Classes near me", "Finding your location…" and the place search box's "City or postcode" hint.
  • This is the producer half for the atlas first-screen PR in SahajAtlasWeb. The widget syncs these keys once this has deployed. Nothing is removed or renamed; two old keys retire in a later follow-up once the widget stops reading them.

Change outline

Contract — the sy-atlas-translations schema

Four keys, each with its English as a schema default, so data.en.json carries none. All four join existing groups.

 countries                                       src/globals/SahajAtlasTranslations/translationsSchema.json
   title · browse_heading · place_title
+  near_city    default "Classes near %{city}"   # one-tap line under the search box; `%{city}` = guessed town
+  near_me      default "Classes near me"        # same line with no guessed town; asks the browser for location
+  locating     default "Finding your location…" # same line while that request is out
 search
   chrome
     title · placeholder
+    city_or_postcode  default "City or postcode"  # hint in the place search box, every page

The nine other locale seeds each gain the four keys as machine translations, with %{city} kept verbatim. src/payload-types.ts is regenerated: four optional keys on SyAtlasTranslationsCountriesStrings and SyAtlasTranslationsSearchChromeStrings.

Preview

No preview surface

Contract impact

  • SahajAtlasWeb: the first-screen PR reads all four keys. After this merges and Railway has booted the deploy, pnpm sync:translations --write pulls the English from production.
  • Generated types: pnpm types:cms in SahajAtlasWeb and WeMeditateWeb picks up four optional keys. Nothing is removed or renamed.

Migration

None. The keys join existing groups, so no column changes, and each declares a default, so reconcileEnglishDefaults fills the English on boot (src/migrations/AGENTS.md). pnpm db:migrations:create … --skip-empty was run and wrote no files.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh): lint, format check, typecheck (src and tests), unit lane (294 files, 3924 tests) all passed
  • Targeted specs: tests/int/translations-globals.int.spec.ts (36) and tests/int/translations-english-defaults.int.spec.ts (5) passed; seeds/tests/atlas-translations-import.test.ts (9) passed
  • Build: N/A

Notes for reviewer

  • The nine translations reach only a fresh database. In production every non-English locale falls back to English until its value is entered or imported.
Detail

Machine translations:

Locale countries.near_city countries.near_me countries.locating search.chrome.city_or_postcode
cs Kurzy poblíž: %{city} Kurzy v mém okolí Zjišťuji vaši polohu… Město nebo PSČ
de Kurse in der Nähe von %{city} Kurse in meiner Nähe Standort wird ermittelt… Ort oder Postleitzahl
es Clases cerca de %{city} Clases cerca de mí Buscando tu ubicación… Ciudad o código postal
fr Cours près de %{city} Cours près de moi Recherche de votre position… Ville ou code postal
hu Órák %{city} közelében Órák a közelemben Tartózkodási hely keresése… Város vagy irányítószám
nl Lessen bij %{city} in de buurt Lessen bij mij in de buurt Je locatie zoeken… Plaats of postcode
pt-BR Aulas perto de %{city} Aulas perto de mim Buscando sua localização… Cidade ou CEP
ru Занятия рядом: %{city} Занятия рядом со мной Определяем местоположение… Город или индекс
uk Заняття поруч: %{city} Заняття поруч зі мною Визначаємо місцезнаходження… Місто або поштовий індекс

🤖 Generated with Claude Code

…d city-or-postcode labels

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1295 November 27, 2026 00:48 Destroyed
@railway-app

railway-app Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1295 environment in sahajcloud

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 27, 2026 at 1:02 am UTC
1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is

@sydevs-dispatcher

Copy link
Copy Markdown

Adversarial review skipped: this PR only adds translation keys. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 27, 2026
@Ardnived
Ardnived merged commit a474f90 into main Nov 27, 2026
16 of 17 checks passed
@Ardnived
Ardnived deleted the feat/atlas-first-screen-strings branch November 27, 2026 01:15
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 27, 2026
sydevs-dispatcher Bot pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
Ardnived pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
* chore(contracts): re-sync from sydevs/SahajCloud#1291

* chore(contracts): re-sync from sydevs/SahajCloud#1288

* chore(contracts): re-sync from sydevs/SahajCloud#1292

* chore(contracts): re-sync from sydevs/SahajCloud#1293

* chore(contracts): re-sync from sydevs/SahajCloud#1294

* chore(contracts): re-sync from sydevs/SahajCloud#1295

* chore(contracts): re-sync from sydevs/SahajCloud#1298

---------

Co-authored-by: sydevs-bot <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
…1295

Added by hand to match the producer PR, as #507 did, while the full sync
stays blocked on #466. search.chrome.placeholder and
search.nearby_prompt.title retire through sydevs/SahajCloud#1296.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived added a commit that referenced this pull request Nov 27, 2026
… or postcode" (#1299)

search.chrome.placeholder is the atlas's one place-search hint, so it takes the
new wording in English and the nine seeds, and search.chrome.city_or_postcode
(#1295), which nothing read, is retired. A data-only migration rewrites stored
copy that still holds the old wording and sweeps the retired key from every
locale and version row.

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1295 — b82de2ee Deployed Nov 27, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant