Make WordPress Core

Changeset 59591


Ignore:
Timestamp:
01/08/2025 12:34:17 PM (6 weeks ago)
Author:
swissspidy
Message:

I18N: Update theme.json i18n schema with latest changes from Gutenberg.

Makes shadow, duotone and aspect ratio names properly translatable.

Props dalleyne, audrasjb, oandregal, swissspidy.
Fixes #62728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-i18n.json

    r58632 r59591  
    44    "settings": {
    55        "typography": {
    6                 "fontSizes": [
    7                     {
    8                         "name": "Font size name"
    9                     }
    10                 ],
    11                 "fontFamilies": [
    12                     {
    13                         "name": "Font family name"
    14                     }
    15                 ]
     6            "fontSizes": [
     7                {
     8                    "name": "Font size name"
     9                }
     10            ],
     11            "fontFamilies": [
     12                {
     13                    "name": "Font family name"
     14                }
     15            ]
    1616        },
    1717        "color": {
    18                 "palette": [
    19                     {
    20                         "name": "Color name"
    21                     }
    22                 ],
    23                 "gradients": [
    24                     {
    25                         "name": "Gradient name"
    26                     }
    27                 ],
    28                 "duotone": [
    29                     {
    30                         "name": "Duotone name"
    31                     }
    32                 ]
     18            "palette": [
     19                {
     20                    "name": "Color name"
     21                }
     22            ],
     23            "gradients": [
     24                {
     25                    "name": "Gradient name"
     26                }
     27            ],
     28            "duotone": [
     29                {
     30                    "name": "Duotone name"
     31                }
     32            ]
    3333        },
    3434        "spacing": {
     
    4343                {
    4444                    "name": "Aspect ratio name"
     45                }
     46            ]
     47        },
     48        "shadow": {
     49            "presets": [
     50                {
     51                    "name": "Shadow name"
    4552                }
    4653            ]
     
    7077                            "name": "Gradient name"
    7178                        }
     79                    ],
     80                    "duotone": [
     81                        {
     82                            "name": "Duotone name"
     83                        }
     84                    ]
     85                },
     86                "dimensions": {
     87                    "aspectRatios": [
     88                        {
     89                            "name": "Aspect ratio name"
     90                        }
    7291                    ]
    7392                },
Note: See TracChangeset for help on using the changeset viewer.