mirror of
https://github.com/discourse/discourse.git
synced 2026-03-04 01:15:08 +08:00
Reported here: https://meta.discourse.org/t/labels-and-descriptions-missing-from-nested-object-settings/394685 Descriptions for nested object settings were not being displayed due to a mismatch in locale key formatting. Stripping `.schema.properties.` so that the locale keys from the serializer match the keys expected in the template fixes it Before: <img width="600" alt="image" src="https://github.com/user-attachments/assets/1e0ab4c6-e6eb-478d-97bc-76f16739135b" /> After: <img width="600" alt="image" src="https://github.com/user-attachments/assets/a9a9e64c-4efa-4807-94a1-dd853ffd9f04" />
25 lines
758 B
YAML
25 lines
758 B
YAML
en:
|
|
theme_metadata:
|
|
settings:
|
|
objects_setting:
|
|
description: "This is a description for objects setting"
|
|
schema:
|
|
properties:
|
|
name:
|
|
label: Name
|
|
description: "Section Name"
|
|
links:
|
|
schema:
|
|
properties:
|
|
name:
|
|
label: Name
|
|
description: "Name of the link"
|
|
url:
|
|
label: URL
|
|
description: "URL of the link"
|
|
child_links:
|
|
schema:
|
|
properties:
|
|
title:
|
|
label: Title
|
|
description: "Title of the child link"
|