Skip to content

Commit

Permalink
fix: prevent translation from breaking elements (#380)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
whiteSHADOW1234 authored Feb 11, 2025
1 parent 5601d37 commit 30383df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ function gtag() {

<label for="center">Horizontally Centered</label>
<select class="param" id="center" name="center" alt="Horizontally Centered">
<option>false</option>
<option>true</option>
<option value="false">false</option>
<option value="true">true</option>
</select>

<label for="vCenter">Vertically Centered</label>
<select class="param" id="vCenter" name="vCenter" alt="Vertically Centered">
<option>false</option>
<option>true</option>
<option value="false">false</option>
<option value="true">true</option>
</select>

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

<label for="repeat">Repeat</label>
<select class="param" id="repeat" name="repeat" alt="Repeat">
<option>true</option>
<option>false</option>
<option value="true">true</option>
<option value="false">false</option>
</select>

<label for="random">Random</label>
<select class="param" id="random" name="random" alt="Random">
<option>false</option>
<option>true</option>
<option value="false">false</option>
<option value="true">true</option>
</select>

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

0 comments on commit 30383df

Please sign in to comment.