Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents Google translation #114

Merged
merged 1 commit into from
May 9, 2024
Merged

Prevents Google translation #114

merged 1 commit into from
May 9, 2024

Conversation

alexrififi
Copy link
Contributor

@alexrififi alexrififi commented May 8, 2024

Hi Brent!

This package is used to render blocks of sample code on spatie.be/docs

Non-English users can translate the documentation using Google Translator if they want.

The inconvenience is that the code blocks are also translated. This is not necessary and looks ugly.

According to Google instructions, setting class="notranslate" prevents Google translation.

For example, this is what GitHub does.

@brendt brendt merged commit eaf26c2 into tempestphp:main May 9, 2024
2 checks passed
@brendt
Copy link
Member

brendt commented May 9, 2024

Awesome! Thanks

@brendt
Copy link
Member

brendt commented May 9, 2024

@alexrififi alexrififi deleted the prevents-google-translation branch May 9, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants