mirror of
https://github.com/hanzoai/i18n.git
synced 2026-10-30 14:24:32 +00:00
main
A section in a chunk of its own hydrates after the provider may have loaded the reader's catalog. useI18n handed it the Arabic words over English HTML, and React threw the tree away and drew it again on the client (hanzo.ai's landing in Arabic: "Hydration failed because the server rendered text didn't match", #418). useI18n answers the provider's starting locale with no catalog (Served) while its component hydrates, through useSyncExternalStore's server snapshot, and the reader's words a render later; a component mounted on the client gets them at once. test:browser hydrates a page held up by a section whose chunk arrives after the catalog, and reports the mismatch without this change.
Description
Translation toolkit and pipeline for the Hanzo, Lux, Zoo, and Pars ecosystem.
5.6 MiB
Languages
TypeScript
87.5%
JavaScript
9.5%
Shell
2.4%
Python
0.4%
CSS
0.2%