Skip to content

Docs: Document en-US runtime loading skip for Grafana 13.1.0#2645

Draft
hugohaggmark wants to merge 1 commit into
mainfrom
hugoh/docs-change-translations
Draft

Docs: Document en-US runtime loading skip for Grafana 13.1.0#2645
hugohaggmark wants to merge 1 commit into
mainfrom
hugoh/docs-change-translations

Conversation

@hugohaggmark
Copy link
Copy Markdown
Contributor

@hugohaggmark hugohaggmark commented May 22, 2026

What this PR does / why we need it:

Starting with Grafana 13.1.0 (grafana/grafana#125327, originally grafana/grafana#120923 and grafana/grafana#122188), Grafana no longer fetches en-US translation resources at runtime. The strings are already embedded in source via the second argument of t() and the children of <Trans>, so this saves the browser from downloading a translation file the bundle already contains.

This PR updates the plugin internationalization guides to:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Draft until grafana/grafana#125327 lands. The exact version number (13.1.0) should also be re-verified at that time.

🤖 Generated with Claude Code

Starting with Grafana 13.1.0, Grafana no longer fetches en-US translation
resources at runtime; the strings come from defaults in source code (the
second argument of t() and the children of Trans). Update the plugin
internationalization guides to note this, explain the kilobyte savings,
and walk through how to declare plural defaults inline using
defaultValue_one / defaultValue_other and the Trans tOptions prop.

Refs:
- grafana/grafana#125327
- grafana/grafana#125312
- grafana/grafana#125316

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hugohaggmark hugohaggmark added type/docs Changes only affect the documentation no-changelog Don't include in changelog and version calculations labels May 22, 2026
@hugohaggmark hugohaggmark added the no-changelog Don't include in changelog and version calculations label May 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Don't include in changelog and version calculations type/docs Changes only affect the documentation

Projects

Status: 📬 Triage
Status: 🔍 In review

Development

Successfully merging this pull request may close these issues.

1 participant