gt-i18n@1.0.0-odysseus.5
Pre-releasePatch Changes
-
432fa49: Use Next.js caching semantics for Cache Components by disabling GT cache expiry and development hot reload runtime translation.
Async translation and dictionary lookup boundaries now keep synchronous access to the loaded snapshot, so APIs like
getGTandgetTranslationscan still resolve strings after cache expiry is delegated to Next.js.Global singleton setup now preserves the first initialized instance instead of replacing it on later initialization attempts.
-
432fa49: Support dev hot reload lookups for server
getGTstrings.getGTcan now receive compiler-injected message metadata and prefetch missing translations through the runtime cache in development.gt-nextforwards the server request conditions into this path so App Router server strings can participate in hot reload translation updates.Compiler-injected
getGTanduseGTpreload messages now emit the same sugar metadata keys used by runtime lookup options. -
933916e: Store the GT services enabled flag on the i18n config singleton.
-
4a5f8e8: Remove unused internal exports and dead utility code.
-
083d306: Remove deprecated i18n cache lifecycle hooks and unused cache events.
The cache subscription surface now only exposes
translations-cache-miss, which is used for runtime translation updates. Deprecated lifecycle constructor callbacks and unused locale/dictionary cache hit/miss events have been removed.