JavaScript Hydration

The RCC supports translation of any static site (likely created via an SSG) that Rosey would support. Anything that relies on JavaScript hydration for text values will need a workaround outside of the default workflow. This is because often your translated values will appear as the initial value on a page's initial load, and then the page or component rerenders with the values contained in your JavaScript.

Rosey scans your static HTML for elements with data-rosey tags and the text those elements contain. If that text is overwritten by JS the translated text will get clobbered by the untranslated JS values. A couple of ideas for workarounds: