Skip to content

Commit c979509

Browse files
committed
fix: translate only the words
1 parent 2d1512f commit c979509

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/plugins/global-settings/preset-controls/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private function load_json_file( $json_path ) {
6868
}
6969

7070
/**
71-
* Generate CSS variable style defintions based on the property (e.g., fontSizes, spacing).
71+
* Generate CSS variable style definitions based on the property (e.g., fontSizes, spacing).
7272
* The given presets will be overriden it match with a preset from custom.
7373
*
7474
* @param array $property

src/plugins/global-settings/typography/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,35 +106,35 @@ const TYPE_SCALE = [
106106
disabled: true,
107107
},
108108
{
109-
label: __( '1.067 - Minor Second', i18n ),
109+
label: sprintf( __( '%s - %s', i18n ), '1.067', __( 'Minor Second', i18n ) ),
110110
value: '1.067',
111111
},
112112
{
113-
label: __( '1.125 - Major Second', i18n ),
113+
label: sprintf( __( '%s - %s', i18n ), '1.125', __( 'Major Second', i18n ) ),
114114
value: '1.125',
115115
},
116116
{
117-
label: __( '1.200 - Minor Third', i18n ),
117+
label: sprintf( __( '%s - %s', i18n ), '1.2', __( 'Minor Third', i18n ) ),
118118
value: '1.2',
119119
},
120120
{
121-
label: __( '1.250 - Major Third', i18n ),
121+
label: sprintf( __( '%s - %s', i18n ), '1.25', __( 'Major Third', i18n ) ),
122122
value: '1.25',
123123
},
124124
{
125-
label: __( '1.333 - Perfect Fourth', i18n ),
125+
label: sprintf( __( '%s - %s', i18n ), '1.333', __( 'Perfect Fourth', i18n ) ),
126126
value: '1.333',
127127
},
128128
{
129-
label: __( '1.414 - Augmented Fourth', i18n ),
129+
label: sprintf( __( '%s - %s', i18n ), '1.414', __( 'Augmented Fourth', i18n ) ),
130130
value: '1.414',
131131
},
132132
{
133-
label: __( '1.500 - Perfect Fifth', i18n ),
133+
label: sprintf( __( '%s - %s', i18n ), '1.5', __( 'Perfect Fifth', i18n ) ),
134134
value: '1.5',
135135
},
136136
{
137-
label: __( '1.618 - Golden Ratio', i18n ),
137+
label: sprintf( __( '%s - %s', i18n ), '1.618', __( 'Golden Ratio', i18n ) ),
138138
value: '1.618',
139139
},
140140
]

0 commit comments

Comments
 (0)