preact-www icon indicating copy to clipboard operation
preact-www copied to clipboard

Content doesn't update correctly on translation

Open Remeic opened this issue 3 years ago • 2 comments

I'm updating some pages for the italian translation, but i have strange behaviour on translated pages. On homepage i get the error index.js?cd39:97 Uncaught (in promise) TypeError: Cannot read property '1' of null On specific pages i don't have this error but the issue is still present.

I believe video can be very useful: https://youtu.be/hPsY6OrfEPI

Reproducibility: Repo: https://github.com/Remeic/preact-www branch: feature/italian

Remeic avatar Nov 01 '20 19:11 Remeic

Yikes! I think that's something to do with the parsing of YAML frontmatter in documentation files. I don't see anything in your branch that would cause such issues though...

developit avatar Jan 03 '22 19:01 developit

Yikes! I think that's something to do with the parsing of YAML frontmatter in documentation files. I don't see anything in your branch that would cause such issues though...

Can I perform other tests to be able to resolve the problem or get more details? Thanks in advance Jason!

Remeic avatar Jan 10 '22 08:01 Remeic

Sorry for the long delay.

The HTML is being indented with four spaces -- per the markdown spec, this makes it a code block, which then threw an error as these code blocks weren't given a class specifying the code type for prism.

<section class="home-section">
-    <img src="/assets/home/metal.svg" alt="metal">
-
-    <h2>Più vicino al DOM</h2>
+  <img src="/assets/home/metal.svg" alt="metal">
+
+  <h2>Più vicino al DOM</h2>

It's not the most robust system in the world, admittedly.

rschristian avatar May 08 '24 02:05 rschristian