Skip to content

[beta] Google translate breaks Sandboxes by translating their contents #3977

Closed

Description

@nearestnabors

When I use Google Translate to translate a page, it translates the source code and error messages in the sandboxes. Could we make it so the code in the sandbox and the code in the error messages are not translated?

Screenshot 2021-10-22 at 15 14 15

Activity

  1. shrirambalaji commented on Oct 23, 2021

    @shrirambalaji
    Contributor

    @rachelnabors Taking a dig at this.

    image

    We probably also want to avoid translation of all code blocks too right?

    Also, the translation should only be disabled for the content and the preview. the buttons should still be translated, kinda like this or do we not want that too?

    image

  2. nearestnabors commented on Oct 23, 2021

    @nearestnabors
    ContributorAuthor

    Good catch on the code blocks!

    • All code inside Sandboxes, Code Blocks, and inline code should not be translated.
    • Sandbox UI should be translated
    • Sandbox Error messages should be translated, but not the code (this is something CodeSandbox might be better able to fix)
  3. shrirambalaji commented on Oct 23, 2021

    @shrirambalaji
    Contributor

    Yeah sandpack has those abstracted so they need to handle translation of error messages in there.

  4. gaearon commented on Nov 4, 2021

    @gaearon
    Member

    Should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions