@@ -1811,6 +1811,60 @@ exports[`Translate command > filter files on extract with extra vars option > fi
18111811]"
18121812`;
18131813
1814+ exports[`Translate command > remove falsy liquid conditions structures > filelist 1`] = `
1815+ "[
1816+ "index.md.skl",
1817+ "index.md.xliff"
1818+ ]"
1819+ `;
1820+
1821+ exports[`Translate command > remove falsy liquid conditions structures 1`] = `
1822+ "%%%0%%%
1823+ <!-- [missed file](./missed.md) -->
1824+
1825+
1826+
1827+
1828+ #### %%%1%%%
1829+
1830+ {% if list contains "item" %}
1831+
1832+ %%%2%%%
1833+
1834+ {% endif %}
1835+
1836+ #### %%%3%%%
1837+
1838+ "
1839+ `;
1840+
1841+ exports[`Translate command > remove falsy liquid conditions structures 2`] = `
1842+ "<?xml version="1.0" encoding="UTF-8"?>
1843+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1844+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1845+ <header>
1846+ <skeleton>
1847+ <external-file href="file.skl"></external-file>
1848+ </skeleton>
1849+ </header>
1850+ <body>
1851+ <trans-unit id="0">
1852+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](./exists.md)" id="g-1" x-begin="[" x-end="](./exists.md)">existing file</g></source>
1853+ </trans-unit>
1854+ <trans-unit id="1">
1855+ <source xml:space="preserve">Standalone contains condition</source>
1856+ </trans-unit>
1857+ <trans-unit id="2">
1858+ <source xml:space="preserve">#### List</source>
1859+ </trans-unit>
1860+ <trans-unit id="3">
1861+ <source xml:space="preserve">Inline contains condition</source>
1862+ </trans-unit>
1863+ </body>
1864+ </file>
1865+ </xliff>"
1866+ `;
1867+
18141868exports[`Translate command > removes no-translate directive and leaves content as is > filelist 1`] = `
18151869"[
18161870 "index.md.skl",
@@ -2077,6 +2131,105 @@ exports[`Translate command > removes no-translate directive and leaves content a
20772131</xliff>"
20782132`;
20792133
2134+ exports[`Translate command > save truthy liquid conditions structures > filelist 1`] = `
2135+ "[
2136+ "index.md.skl",
2137+ "index.md.xliff"
2138+ ]"
2139+ `;
2140+
2141+ exports[`Translate command > save truthy liquid conditions structures 1`] = `
2142+ "%%%0%%%
2143+ <!-- [missed file](./missed.md) -->
2144+ {% if prod == true %}%%%1%%%{% endif %}
2145+
2146+ {% if inner == true %}%%%2%%%{% endif %}
2147+
2148+ {% if prod == true %}%%%3%%%{% endif %}{% endif %}
2149+
2150+ {% if prod == true %}
2151+
2152+ {% if list contains "item" %}
2153+
2154+ %%%4%%%
2155+
2156+ {% if item == true %}%%%5%%% %%%6%%% {% endif %}
2157+
2158+ %%%7%%%
2159+
2160+ {% endif %}
2161+
2162+ {% endif %}
2163+
2164+ #### %%%8%%%
2165+
2166+ {% if list contains "item" %}
2167+
2168+ %%%9%%%
2169+
2170+ {% endif %}
2171+
2172+ #### %%%10%%%
2173+
2174+ {% if prod == true %}
2175+
2176+ %%%11%%% {% endif %}
2177+
2178+ {% endif %}
2179+ "
2180+ `;
2181+
2182+ exports[`Translate command > save truthy liquid conditions structures 2`] = `
2183+ "<?xml version="1.0" encoding="UTF-8"?>
2184+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2185+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2186+ <header>
2187+ <skeleton>
2188+ <external-file href="file.skl"></external-file>
2189+ </skeleton>
2190+ </header>
2191+ <body>
2192+ <trans-unit id="0">
2193+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](./exists.md)" id="g-1" x-begin="[" x-end="](./exists.md)">existing file</g></source>
2194+ </trans-unit>
2195+ <trans-unit id="1">
2196+ <source xml:space="preserve">Test text</source>
2197+ </trans-unit>
2198+ <trans-unit id="2">
2199+ <source xml:space="preserve">inner test text</source>
2200+ </trans-unit>
2201+ <trans-unit id="3">
2202+ <source xml:space="preserve">Test text<x ctype="liquid_Literal" equiv-text="{% if inner == true %}" id="x-1"/>inner test text</source>
2203+ </trans-unit>
2204+ <trans-unit id="4">
2205+ <source xml:space="preserve">#### List</source>
2206+ </trans-unit>
2207+ <trans-unit id="5">
2208+ <source xml:space="preserve">1.</source>
2209+ </trans-unit>
2210+ <trans-unit id="6">
2211+ <source xml:space="preserve">Item</source>
2212+ </trans-unit>
2213+ <trans-unit id="7">
2214+ <source xml:space="preserve">Some text</source>
2215+ </trans-unit>
2216+ <trans-unit id="8">
2217+ <source xml:space="preserve">Standalone contains condition</source>
2218+ </trans-unit>
2219+ <trans-unit id="9">
2220+ <source xml:space="preserve">#### List</source>
2221+ </trans-unit>
2222+ <trans-unit id="10">
2223+ <source xml:space="preserve">Inline contains condition</source>
2224+ </trans-unit>
2225+ <trans-unit id="11">
2226+ <source xml:space="preserve">#### List <x ctype="liquid_Literal" equiv-text="{% if list contains "item" %}" id="x-2"/> sub text</source>
2227+ </trans-unit>
2228+ </body>
2229+ </file>
2230+ </xliff>"
2231+ `;
2232+
20802233exports[`Translate command > skip no-translate marked content > filelist 1`] = `
20812234"[
20822235 "index.md.skl",
0 commit comments