@fusion.dev/helix-docs 0.103.3 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/building-on-the-headless-tier.mdx +1 -1
- package/content/localization.mdx +19 -3
- package/content/metrics.mdx +221 -219
- package/content/visual-axes.mdx +3 -1
- package/dist/sources.generated.js +244 -224
- package/package.json +3 -3
|
@@ -46,7 +46,7 @@ a combobox that appears not to open.
|
|
|
46
46
|
|
|
47
47
|
[//]: # (renders)
|
|
48
48
|
|
|
49
|
-
**27 of the
|
|
49
|
+
**27 of the 97 headless families interpolate another family's tag**, across 20 distinct children.
|
|
50
50
|
|
|
51
51
|
| Family | Renders |
|
|
52
52
|
|---|---|
|
package/content/localization.mdx
CHANGED
|
@@ -85,9 +85,9 @@ to keep up to date.
|
|
|
85
85
|
|
|
86
86
|
## Translatable strings
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
values are format templates:
|
|
88
|
+
Over a hundred properties across the headless tier are strings a reader sees,
|
|
89
|
+
from `pan-up-label` on a map to `remove-label` on a combobox's chosen tags. The
|
|
90
|
+
ones that combine values are format templates:
|
|
91
91
|
|
|
92
92
|
```html
|
|
93
93
|
<helix-pagination-summary
|
|
@@ -102,6 +102,22 @@ values are format templates:
|
|
|
102
102
|
The placeholders are named rather than positional, so a translation can reorder
|
|
103
103
|
them, which some languages require and a positional format cannot express.
|
|
104
104
|
|
|
105
|
+
**Validation messages are properties too**, named for the validity flag each
|
|
106
|
+
one reports: `value-missing-message`, `bad-input-message`,
|
|
107
|
+
`range-underflow-message`, `range-overflow-message`, `too-short-message`. They
|
|
108
|
+
reach the browser's own bubble as well as the line under the field, which
|
|
109
|
+
`feedback` alone does not. Left unset, a text field keeps the browser's own
|
|
110
|
+
message, which is already in the reader's language, and every other control
|
|
111
|
+
keeps its English sentence.
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<helix-number-input
|
|
115
|
+
label="Invités"
|
|
116
|
+
min="2"
|
|
117
|
+
range-underflow-message="Au moins {min}."
|
|
118
|
+
></helix-number-input>
|
|
119
|
+
```
|
|
120
|
+
|
|
105
121
|
**Pass these from your own translation system.** Helix ships English defaults
|
|
106
122
|
and no translation machinery: a design system that owned the string catalog
|
|
107
123
|
would be a second one to keep in step with yours.
|