Skip to content

docs: add getTranslations for gt-node, update initializeGT#299

Merged
moss-bryophyta merged 1 commit intomainfrom
docs/gt-node-get-translations
May 7, 2026
Merged

docs: add getTranslations for gt-node, update initializeGT#299
moss-bryophyta merged 1 commit intomainfrom
docs/gt-node-get-translations

Conversation

@moss-bryophyta
Copy link
Copy Markdown
Collaborator

Adds documentation for the new getTranslations function in gt-node@0.7.0, which exposes dictionary-backed translations from gt-i18n@0.9.0.

Changes:

  • New API reference page: docs/en-US/node/api/get-translations.mdx
    • Covers t() for string lookups and t.obj() for subtree lookups
    • Setup instructions (automatic via dictionary.json + custom loadDictionary)
    • Fallback behavior (missing translation → source text, missing source entry → error)
  • Updated initializeGT docs with new dictionary and loadDictionary parameters
  • Updated meta.json to include the new page in the sidebar

Triggered by release PR #1360.

@moss-bryophyta moss-bryophyta requested a review from a team as a code owner May 7, 2026 22:09
@moss-bryophyta moss-bryophyta enabled auto-merge (squash) May 7, 2026 22:09
@moss-bryophyta moss-bryophyta merged commit 7b397c2 into main May 7, 2026
5 checks passed
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.

2 participants