Skip to content

refactor(i18n): pre-build lookup map for translations - #4696

Open
ngolin wants to merge 1 commit into
facebook:mainfrom
ngolin:main
Open

refactor(i18n): pre-build lookup map for translations#4696
ngolin wants to merge 1 commit into
facebook:mainfrom
ngolin:main

Conversation

@ngolin

@ngolin ngolin commented Aug 4, 2026

Copy link
Copy Markdown

Memoize the translation lookup map and expose it via context instead of resolving keys on each call. This removes per-call chain resolution and the useCallback wrapper, improving performance for frequent translations.

Memoize the translation lookup map and expose it via context instead of
resolving keys on each call. This removes per-call chain resolution and
the `useCallback` wrapper, improving performance for frequent translations.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 4, 2026
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx (canary) Ready Ready Preview Aug 4, 2026 4:35am
astryx Ready Ready Preview Aug 4, 2026 4:35am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant