Skip to content

gt-next@11.0.4

Choose a tag to compare

@github-actions github-actions released this 14 Jul 05:41
· 109 commits to main since this release
a2ef24c

Patch Changes

  • #1847 d8938b6 Thanks @ErnestM1234! - Add withGTStaticProps() for hydrating each statically generated Pages Router locale with its relevant translation snapshot. Pages Router locale routing is required so Next.js generates the page once per locale.

  • #1848 1f33d5f Thanks @bgub! - Remove unused dependencies: @generaltranslation/supported-locales from gt-react, gt-next, gt-i18n, and @generaltranslation/react-core, and @generaltranslation/format from gt-react. Nothing in these packages imports them, so this only reduces install weight.

  • #1851 604889b Thanks @bgub! - Make @generaltranslation/compiler an optional peer dependency instead of a hard dependency. It is only used by the experimental experimentalCompilerOptions.type: 'babel' webpack path, which already degrades gracefully with a warning when the package cannot be resolved. Users who enable the experimental babel compiler must now install @generaltranslation/compiler themselves; everyone else saves ~8.5MB of install weight (the compiler plus its Babel toolchain).

  • Updated dependencies [006e071, 7fb4a74, d23766c, 1f33d5f]:

    • @generaltranslation/compiler@1.3.26
    • gt-i18n@1.0.2
    • gt-react@11.0.4
    • @generaltranslation/react-core@11.0.4