Skip to content

Commit 30383df

Browse files
fix: prevent translation from breaking elements (#380)
* Fix issue #336: Prevent Edge's translation from altering text by disabling translation on key elements * fix: Use value attributes for option tags instead of disabling translation
1 parent 5601d37 commit 30383df

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/demo/index.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ function gtag() {
9595

9696
<label for="center">Horizontally Centered</label>
9797
<select class="param" id="center" name="center" alt="Horizontally Centered">
98-
<option>false</option>
99-
<option>true</option>
98+
<option value="false">false</option>
99+
<option value="true">true</option>
100100
</select>
101101

102102
<label for="vCenter">Vertically Centered</label>
103103
<select class="param" id="vCenter" name="vCenter" alt="Vertically Centered">
104-
<option>false</option>
105-
<option>true</option>
104+
<option value="false">false</option>
105+
<option value="true">true</option>
106106
</select>
107107

108108
<label for="multiline">Multiline</label>
@@ -113,14 +113,14 @@ function gtag() {
113113

114114
<label for="repeat">Repeat</label>
115115
<select class="param" id="repeat" name="repeat" alt="Repeat">
116-
<option>true</option>
117-
<option>false</option>
116+
<option value="true">true</option>
117+
<option value="false">false</option>
118118
</select>
119119

120120
<label for="random">Random</label>
121121
<select class="param" id="random" name="random" alt="Random">
122-
<option>false</option>
123-
<option>true</option>
122+
<option value="false">false</option>
123+
<option value="true">true</option>
124124
</select>
125125

126126
<label for="dimensions" title="Width ✕ Height">Width ✕ Height</label>

0 commit comments

Comments
 (0)