1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-17590] fix chrome translation bug by escaping $ (#13103)

replaces translation with hard-coded text for cross-platform compatibility
This commit is contained in:
✨ Audrey ✨
2025-03-06 15:13:04 -05:00
committed by GitHub
parent 5588e1a1a1
commit dcf15b496b
5 changed files with 10 additions and 30 deletions

View File

@@ -68,7 +68,11 @@
</bit-form-control>
<bit-form-control>
<input type="checkbox" bitCheckbox formControlName="useSpecial" id="useSpecial" />
<bit-label>{{ "specialCharactersLabel" | i18n }}</bit-label>
<!-- hard-coded the special characters string because `$` indicates an i18n interpolation,
and is handled inconsistently across browsers. Angular template syntax is used to
ensure special characters are entity-encoded.
-->
<bit-label>{{ "!@#$%^&*" }}</bit-label>
</bit-form-control>
</div>

View File

@@ -10100,10 +10100,6 @@
"message": "Include special characters",
"description": "Full description for the password generator special characters checkbox"
},
"specialCharactersLabel": {
"message": "!@#$%^&*",
"description": "Label for the password generator special characters checkbox"
},
"addAttachment": {
"message": "Add attachment"
},