sveltejs / sites

Monorepo for the sites in the Svelte ecosystem
https://svelte.dev
MIT License
291 stars 124 forks source link

Prevent translation of code snippets in REPL examples #106

Open Rich-Harris opened 5 years ago

Rich-Harris commented 5 years ago

We need to add attributes to prevent browsers from translating code snippets when the rest of the page is translated, per this screenshot:

screenshot

(Obviously we also need to internationalise the site but this is a useful measure in the meantime)

Conduitry commented 4 years ago

https://github.com/sveltejs/svelte-repl/pull/113 added notranslate to a div containing the CodeMirror editor, but I think there are still other places this should happen, like read-only code blocks.