From c8e1bd81e56ea1b329747bee7c364417ef96f5e2 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 10 Jul 2026 09:46:37 +1000 Subject: [PATCH] docs(site): update media text examples --- .../content/docs/how-to/i18n-override-translations.mdx | 2 +- site/src/content/docs/reference/media-i18n.mdx | 4 ++-- site/src/content/docs/reference/media-text.mdx | 10 ++++------ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/site/src/content/docs/how-to/i18n-override-translations.mdx b/site/src/content/docs/how-to/i18n-override-translations.mdx index ec4fc64f..ce3b4bbd 100644 --- a/site/src/content/docs/how-to/i18n-override-translations.mdx +++ b/site/src/content/docs/how-to/i18n-override-translations.mdx @@ -59,7 +59,7 @@ Use `` for static c ```html - + Play ``` diff --git a/site/src/content/docs/reference/media-i18n.mdx b/site/src/content/docs/reference/media-i18n.mdx index b76873f6..9a25caaa 100644 --- a/site/src/content/docs/reference/media-i18n.mdx +++ b/site/src/content/docs/reference/media-i18n.mdx @@ -22,7 +22,7 @@ Register locale strings with `registerI - + Play ``` @@ -34,7 +34,7 @@ Register locale strings with `registerI ## Related -- `` — renders a translated string by key +- `` — renders translated text content - Register a custom locale diff --git a/site/src/content/docs/reference/media-text.mdx b/site/src/content/docs/reference/media-text.mdx index bd7cf1d4..48c7e3de 100644 --- a/site/src/content/docs/reference/media-text.mdx +++ b/site/src/content/docs/reference/media-text.mdx @@ -8,19 +8,17 @@ import FrameworkCase from "@/components/docs/FrameworkCase.astro"; -`` renders the translated value for a registry phrase inside a `` (or any ancestor with the i18n provider mixin). Use it for standalone labels, tooltips, or demos — skin controls resolve phrases internally. +`` renders the translated value for its text content inside a `` (or any ancestor with the i18n provider mixin). Use it for standalone labels, tooltips, or demos — skin controls resolve phrases internally. ```html - + Play ``` -## Attributes +## Text content -| Attribute | Description | -| --- | --- | -| `key` | English translation phrase (`Play`, `Pause`, `{duration} remaining`, …). | +The initial text content is the English translation phrase (`Play`, `Pause`, `{duration} remaining`, …). If the phrase is not registered for the active locale, `` keeps the original text. Parametric phrases are not yet supported on `` — use `createTranslator` in script for interpolated strings.