Repository navigation
feat(translations): the atlas calendar's day count, "+ N classes" and "No classes" keys - #1301
Merged
Merged
Conversation
… "No classes" keys
Three sy-atlas-translations keys for SahajAtlasWeb's calendar, so it names classes
rather than Schedule-X's "events":
- calendar.day_count (plural): "%{count} class" / "classes", the quieter line under
the phone month view's day heading ("Today · 4 classes").
- calendar.more (plural): "+ %{count} class" / "classes", the month grid's button for
a day with more classes than its box shows.
- calendar.none: "No classes", declared as a schema default.
A plural key's English cannot be a schema default, so a data-only migration adds the
two English families to production. The nine locale seeds carry machine translations.
times_note's description now says the line sits above the calendar.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-1301 environment in sahajcloud
1 service not affected by this PR
|
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-1301
November 27, 2026 17:07
Destroyed
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
This was referenced Nov 27, 2026
This was referenced Nov 27, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sy-atlas-translationskeys let the atlas calendar say "classes" where Schedule-X says "events".Change outline
Contract —
sy-atlas-translations→calendarThe new keys, which SahajAtlasWeb reads after its next
pnpm sync:translations --write.Migration — English for the two plural keys
A plural key cannot declare a schema
default, so production gets its English here.nonedeclares a default, and the boot reconcile writes it.Preview
No preview surface.
Contract impact
pnpm sync:translations --write) and the types (pnpm types:cms), then wires all three keys. Merging this first is the producer-first order.src/payload-types.tsgainsSyAtlasTranslationsCalendarStrings.day_count_*,more_*andnone.Migration
src/migrations/20261127_190000_atlas_calendar_words.tssy_atlas_translations_locales.calendarand_sy_atlas_translations_v_locales.version_calendar, English rows only. It adds four keys where they are absent and never overwrites a stored word.downremoves every form of the new keys from every locale, because the previous schema refuses them.Test results
translations-english-defaults.int.spec.ts,translations-globals.int.spec.ts, 41 passedNotes for reviewer
index.tsentry ends with a trailing comma, which the entry before it lacks. 24 of the file's 25 entries carry one.data.en.jsonomitsnone. A key that declares adefaultmust stay out of the corpus file, andatlas-translations-schema.spec.tsholds that.🤖 Generated with Claude Code