discourse/app
Alan Guo Xiang Tan 6dac187785
DEV: Support translations for property labels in objects schema editor (#26362)
Why this change?

In cdba864598, we added support for adding
a description which will be displayed under the input of each property
on the client side.

Currently this convention in the locale file is followed:

```
en:
  theme_metadata:
    settings:
      objects_setting:
        description: <description> for the setting
        schema:
          properties:
            name: <description for the name property>
            links:
              name: <description for the name property in link>
              url: <description for the url property in link>
```

Since we now want to allow the label to be translated as well, we will
be changing the convention to the following:

```
en:
  theme_metadata:
    settings:
      objects_setting:
        description: <description> for the setting
        schema:
          properties:
            name:
              label: <label for the name property>
              description: <description for the name property>
            links:
              name:
                label: <label for the name property>
                description: <description for the name property in link>
              url:
		label: <label for the url property>
                description: <description for the url property in link>
```

If the locale file does not provide a `label` key under the property's
name, the client side will just display the property's name as the
label for the input field.
2024-03-28 10:53:51 +08:00
..
assets DEV: Support translations for property labels in objects schema editor (#26362) 2024-03-28 10:53:51 +08:00
controllers DEV: Consolidate experimental 'Link' header implementations (#26377) 2024-03-27 09:06:50 +00:00
helpers DEV: Consolidate experimental 'Link' header implementations (#26377) 2024-03-27 09:06:50 +00:00
jobs PERF: only allow one reviewable notification at a time (#26330) 2024-03-22 17:37:06 -04:00
mailers FIX: Add higher read & open timeouts for group SMTP emails (#24593) 2023-11-28 15:32:59 +10:00
models DEV: Add a test to ensure that our SMTP settings are correct (#26410) 2024-03-28 10:18:19 +08:00
serializers DEV: Change category type to categories type for theme object schema (#26339) 2024-03-27 10:54:30 +08:00
services DEV: Promote block problem checks to ProblemCheck (#26193) 2024-03-20 08:52:25 +08:00
views DEV: Consolidate experimental 'Link' header implementations (#26377) 2024-03-27 09:06:50 +00:00