Commit ea1c7bf
docs(ui): name the 5 remaining nameless form sections in content/docs/ui (#10827)
A section without `name` has no i18n anchor: the heading resolves through
`objects.<object>._sections.<name>.label`, so a nameless section renders its
authored label in every locale. `name` is `.optional()` in the schema, so
nothing rejects these — they are valid, just silently un-localizable.
Adds `name` to the five section literals under content/docs/ui/** that still
lacked one, following the convention the already-named examples in these same
files establish: snake_case, derived from the label, placed first in the
literal (ahead of `label`).
forms.mdx 'Tell us about yourself' -> about_you
forms.mdx 'About you' -> about_you
forms.mdx 'Lead' -> lead
views.mdx 'Basic Information' -> basic_information
views.mdx 'Details' -> details
No section that already had a `name` is renamed, no example restructured, no
surrounding prose touched.
Claude-Session: https://claude.ai/code/session_01DdCnBGcHeufjrq7drTD3wt
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2350264 commit ea1c7bf
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| 331 | + | |
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| 365 | + | |
364 | 366 | | |
365 | 367 | | |
366 | 368 | | |
| |||
0 commit comments