Skip to content

docs: update for gtx-cli@2.14.7, gt-next@6.16.0, gt-react@10.18.0, gt-sanity@2.0.3#227

Open
moss-bryophyta wants to merge 1 commit intomainfrom
docs/release-updates-2026-04-07
Open

docs: update for gtx-cli@2.14.7, gt-next@6.16.0, gt-react@10.18.0, gt-sanity@2.0.3#227
moss-bryophyta wants to merge 1 commit intomainfrom
docs/release-updates-2026-04-07

Conversation

@moss-bryophyta
Copy link
Copy Markdown
Collaborator

Summary

Docs updates reflecting the latest package releases from 2026-04-07.


gtx-cli@2.14.7 — GT_API_KEY security fix (#1179)

The setup wizard no longer prefixes GT_API_KEY with framework-specific client-exposure prefixes (VITE_, NEXT_PUBLIC_, GATSBY_, REDWOOD_ENV_). Production API keys must never be bundled into the client-side JavaScript.

Files changed:

  • docs/en-US/cli/init.mdx — Added a warn callout in the Credentials section explaining that GT_API_KEY is stored without a framework prefix and must remain server-side only. Clarifies that GT_PROJECT_ID and GT_DEV_API_KEY retain their prefix as intended.
  • docs/en-US/next/concepts/environments.mdx — Added a warn callout under the production environment variables section warning against using NEXT_PUBLIC_GT_API_KEY, which would expose the production key in the client bundle.

gt-next@6.16.0 / gt-react@10.18.0 / gt-node@0.5.0 / gt-tanstack-start@0.4.0 / gt-i18n@0.8.0 — Context derivation (#1173)

The compiler and CLI extractor now support derive() inside the $context prop of <T> components and the $context option of useGT string calls. This generates a Cartesian product of content × context entries at build time, enabling context-aware translations.

Files changed:

  • docs/en-US/next/concepts/compiler.mdx — Added a new "Context derivation" subsection under Features, with JSX and string examples showing how derive() works in $context.

gt-sanity@2.0.3@sanity/document-internationalization now an explicit dependency (#1177)

@sanity/document-internationalization is now a direct dependency of gt-sanity rather than a peer dependency, so it no longer needs to be installed separately.

Files changed:

  • docs/en-US/sanity/guides/quickstart.mdx — Added an info callout below the install block noting that @sanity/document-internationalization is bundled with gt-sanity v2.0.3+ and installed automatically.

Releases not requiring doc changes

  • gt@2.14.7 — Empty release (dependency bump only)
  • gt@2.14.6 — Internal CLI/compiler changes for context derivation (covered above)
  • gt@2.14.5 — Bug fix: recursive string translation function resolution (internal, no API change)
  • @generaltranslation/compiler@1.3.2 — Bug fix: handle member expressions without throwing errors (internal)
  • @generaltranslation/compiler@1.3.1 — Internal support for context derivation
  • gt-next@6.16.1 — Dependency bump only
  • locadex@1.0.140–142 — Dependency bumps
  • @generaltranslation/gt-next-lint@14.0.0–14.0.1 — Dependency bumps
  • @generaltranslation/python-extractor@0.2.7 — Python context derivation (existing Python derive docs already cover this pattern)

@moss-bryophyta moss-bryophyta requested a review from a team as a code owner April 8, 2026 20:59
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.

1 participant