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

Feat: Add notranslate to prevent translating code #769

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Feat: Add notranslate to prevent translating code #769

merged 1 commit into from
Mar 1, 2024

Conversation

maple3142
Copy link
Contributor

PR Checklist

PR Type

  • Bugfix.
  • Feature.
  • Improvement.
  • Code style update (formatting, linting).
  • Refactoring (no functional changes).
  • Documentation.
  • Translation.
  • Other... Please describe:

What is the current behavior?

When translating using Google Translate, code blocks will be significantly messed up.

For example: original -> translate (jp)

image

What is the new behavior?

code blocks will not be translated:

  • Link to demo site with this changes:
  • Screenshots with this changes:

image

How to use?

No need to change anything

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8093375075

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.416%

Totals Coverage Status
Change from base Build 7777690186: 0.0%
Covered Lines: 394
Relevant Lines: 399

💛 - Coveralls

@stevenjoezhang stevenjoezhang added this to the 8.19.2 milestone Feb 29, 2024
@stevenjoezhang stevenjoezhang merged commit eaa762d into next-theme:master Mar 1, 2024
12 checks passed
@maple3142 maple3142 deleted the add-notranslate branch March 1, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants