<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>
