Skip to content

Chore/top component context wrapping#302

Merged
zigzagdev merged 4 commits intochore/create-language-contextfrom
chore/top-component-context-wrapping
Apr 30, 2026
Merged

Chore/top component context wrapping#302
zigzagdev merged 4 commits intochore/create-language-contextfrom
chore/top-component-context-wrapping

Conversation

@zigzagdev
Copy link
Copy Markdown
Owner

No description provided.

zigzagdev and others added 4 commits April 30, 2026 09:49
Introduce per-locale UI string dictionaries under src/locals/{en,ja}/ui.json
and a useText hook in src/shared/locale that picks the dictionary off the
active locale from useLocale. Components can now read UI labels from a
single typed source instead of hard-coding English strings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull static labels (DANGER, No image, Heritage Category, Criteria,
View details, No overview available) through useText so the card
follows the active locale, and fix the title fallback so it returns
item.name in EN mode instead of always favouring heritageNameJp.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull static labels (Region, Category, Year Inscribed, Criteria,
Description, Maps, Gallery, Overview, View on UNESCO) through useText
in HeritageDetailLayout, HeritageHero, HeritageOverViewSection, and
HeritageSidebar so the detail screen follows the active locale.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zigzagdev zigzagdev self-assigned this Apr 30, 2026
@zigzagdev zigzagdev linked an issue Apr 30, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Owner Author

@zigzagdev zigzagdev left a comment

Choose a reason for hiding this comment

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

Ok

@zigzagdev zigzagdev merged commit 8c8bc08 into chore/create-language-context Apr 30, 2026
1 check passed
@zigzagdev zigzagdev deleted the chore/top-component-context-wrapping branch April 30, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor: Introduce LanguageContext to eliminate prop drilling

1 participant