-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwpml-config.xml
More file actions
149 lines (131 loc) · 6.06 KB
/
Copy pathwpml-config.xml
File metadata and controls
149 lines (131 loc) · 6.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<wpml-config>
<custom-types>
<custom-type translate="0">spectra-popup</custom-type>
</custom-types>
<gutenberg-blocks>
<!--
All Spectra blocks are server-rendered (view.php); their text is stored as
plain string block attributes in the block-delimiter JSON, NOT as HTML in
post_content. WPML therefore translates them via <key> (attribute translation),
not <xpath>. WPML injects the translated attributes via render_block_data before
view.php runs, so no PHP integration is required.
Block names below are the registered block.json `name` values (which differ from
the src/ directory names for some modal blocks).
-->
<!-- ============ Translatable blocks ============ -->
<!-- Content (heading / paragraph rich text) -->
<gutenberg-block type="spectra/content" translate="1">
<key name="text" />
</gutenberg-block>
<!-- Button: label + link -->
<gutenberg-block type="spectra/button" translate="1">
<key name="text" />
<key name="hoverIconAriaLabel" />
<key name="linkURL" type="link" />
</gutenberg-block>
<!-- Container can be a link wrapper -->
<gutenberg-block type="spectra/container" translate="1">
<key name="linkURL" type="link" />
</gutenberg-block>
<!-- Icon: a11y label + optional link -->
<gutenberg-block type="spectra/icon" translate="1">
<key name="accessibilityLabel" />
<key name="linkURL" type="link" />
</gutenberg-block>
<!-- Google Map: address -->
<gutenberg-block type="spectra/google-map" translate="1">
<key name="address" />
</gutenberg-block>
<!-- Countdown: unit labels live on the parent block -->
<gutenberg-block type="spectra/countdown" translate="1">
<key name="dayLabel" />
<key name="daysLabel" />
<key name="hourLabel" />
<key name="hoursLabel" />
<key name="minuteLabel" />
<key name="minutesLabel" />
<key name="secondLabel" />
<key name="secondsLabel" />
</gutenberg-block>
<!-- Countdown child label / separator (when used standalone) -->
<gutenberg-block type="spectra/countdown-child-label" translate="1">
<key name="text" />
</gutenberg-block>
<gutenberg-block type="spectra/countdown-child-separator" translate="1">
<key name="text" />
</gutenberg-block>
<!-- Counter: prefix / suffix live on the parent block -->
<gutenberg-block type="spectra/counter" translate="1">
<key name="prefix" />
<key name="suffix" />
</gutenberg-block>
<!-- Accordion header content text -->
<gutenberg-block type="spectra/accordion-child-header-content" translate="1">
<key name="text" />
</gutenberg-block>
<!-- Tabs tab button label -->
<gutenberg-block type="spectra/tabs-child-tab-button" translate="1">
<key name="text" />
</gutenberg-block>
<!-- Modal trigger button (block name: modal-child-button) -->
<gutenberg-block type="spectra/modal-child-button" translate="1">
<key name="text" />
<key name="ariaLabel" />
</gutenberg-block>
<!-- Modal trigger content (block name: modal-child-content) -->
<gutenberg-block type="spectra/modal-child-content" translate="1">
<key name="text" />
</gutenberg-block>
<!-- Modal trigger icon (block name: modal-child-icon) -->
<gutenberg-block type="spectra/modal-child-icon" translate="1">
<key name="accessibilityLabel" />
</gutenberg-block>
<!-- Modal popup close icon -->
<gutenberg-block type="spectra/modal-child-popup-close-icon" translate="1">
<key name="accessibilityLabel" />
</gutenberg-block>
<!-- Popup builder wrapper a11y label -->
<gutenberg-block type="spectra/popup-builder" translate="1">
<key name="accessibilityLabel" />
</gutenberg-block>
<!-- Post: pagination chrome (post titles/excerpts come from translated posts) -->
<gutenberg-block type="spectra/post" translate="1">
<key name="paginationPrevLabel" />
<key name="paginationNextLabel" />
<key name="paginationButtonText" />
<key name="paginationLoadingText" />
</gutenberg-block>
<!-- ============ Structural / layout blocks — no translatable content ============ -->
<gutenberg-block type="spectra/accordion" translate="0" />
<gutenberg-block type="spectra/accordion-child-item" translate="0" />
<gutenberg-block type="spectra/accordion-child-header" translate="0" />
<gutenberg-block type="spectra/accordion-child-header-icon" translate="0" />
<gutenberg-block type="spectra/accordion-child-details" translate="0" />
<gutenberg-block type="spectra/buttons" translate="0" />
<gutenberg-block type="spectra/countdown-child-day" translate="0" />
<gutenberg-block type="spectra/countdown-child-hour" translate="0" />
<gutenberg-block type="spectra/countdown-child-minute" translate="0" />
<gutenberg-block type="spectra/countdown-child-second" translate="0" />
<gutenberg-block type="spectra/countdown-child-number" translate="0" />
<gutenberg-block type="spectra/counter-child-number" translate="0" />
<gutenberg-block type="spectra/counter-child-progress-bar" translate="0" />
<gutenberg-block type="spectra/counter-child-wrapper" translate="0" />
<gutenberg-block type="spectra/icons" translate="0" />
<gutenberg-block type="spectra/list" translate="0" />
<gutenberg-block type="spectra/list-child-item" translate="0" />
<gutenberg-block type="spectra/list-child-icon" translate="0" />
<gutenberg-block type="spectra/modal" translate="0" />
<gutenberg-block type="spectra/modal-child-trigger" translate="0" />
<gutenberg-block type="spectra/modal-popup" translate="0" />
<gutenberg-block type="spectra/modal-popup-content" translate="0" />
<gutenberg-block type="spectra/post-template" translate="0" />
<gutenberg-block type="spectra/post-no-results" translate="0" />
<gutenberg-block type="spectra/separator" translate="0" />
<gutenberg-block type="spectra/slider" translate="0" />
<gutenberg-block type="spectra/slider-child" translate="0" />
<gutenberg-block type="spectra/tabs" translate="0" />
<gutenberg-block type="spectra/tabs-child-tab-wrapper" translate="0" />
<gutenberg-block type="spectra/tabs-child-tab-trigger" translate="0" />
<gutenberg-block type="spectra/tabs-child-tabpanel" translate="0" />
</gutenberg-blocks>
</wpml-config>