Skip to content

Conversation

@lukasmasuch
Copy link
Collaborator

@lukasmasuch lukasmasuch commented Jan 13, 2025

Describe your changes

Adds translate="no" attribute for our uses of material icons to prevent the icon text from translating and, thereby, prevent it from breaking the display of the icon.

image

GitHub Issue Link (if applicable)

Testing Plan

  • Added unit tests
  • Testing this e2e does not seem super easy.

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@lukasmasuch lukasmasuch added security-assessment-completed Security assessment has been completed for PR change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Jan 13, 2025
Copy link
Contributor

@sfc-gh-pchiu sfc-gh-pchiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg!

@lukasmasuch lukasmasuch merged commit a318e70 into develop Jan 13, 2025
43 of 46 checks passed
@lukasmasuch lukasmasuch deleted the fix/deactivate-translation-for-material-icons branch January 13, 2025 14:56
edegp pushed a commit to edegp/streamlit that referenced this pull request Jan 19, 2025
## Describe your changes

Adds `translate="no"` attribute for our uses of material icons to
prevent the icon text from translating and, thereby, prevent it from
breaking the display of the icon.

<img width="476" alt="image"
src="https://github.com/user-attachments/assets/7c50cca9-67c0-435c-b385-cc920df4acb2"
/>


## GitHub Issue Link (if applicable)

- Closes streamlit#10168

## Testing Plan

- Added unit tests
- Testing this e2e does not seem super easy.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icon from Material Symbols library are replaced by their translation using Google Chrome's Translation Feature

3 participants