THE GITHTML FIELD GUIDE
Prepare translated text before disconnecting a reading copy
A translation widget may depend on a remote service and may not preserve its translated state in saved HTML. Include the approved translated text directly when it is required for offline reading. Label language and translation status, protect exact technical identifiers from unintended translation, and do not present an unreviewed machine translation as verified terminology.
Identify the hidden dependency
A page can look translated in the current browser while its saved source still contains only the original language. Reopening elsewhere can therefore change the language or leave the translation controls nonfunctional.
Compare the page's actual saved content with the language visible in the original browser. A translation service may alter the displayed document after loading, while the export preserves the untranslated source or only part of the transformed view. Select several consequential sentences, including a warning, a prerequisite, and an expected result, and locate them in the saved artifact. This reveals whether the intended language is present as real content. Do not assume that a translated title means the entire report, image captions, and dynamically loaded sections were captured in the same language.
Prepare the intended reading copy
Choose the passages that need translation and review technical terms, units, negation, and conditions carefully. Keep original identifiers where exact matching matters, using translate=no as an authoring hint where appropriate. That attribute is not a guarantee that every tool will obey it.
Prepare the translated edition as a deliberate document with a source revision, target language, and review status. Use an approved glossary for technical terms and preserve exact commands, filenames, identifiers, and units where substitution would change behavior. Check screenshots and diagram labels as well as paragraphs. If the translation is machine-generated and unreviewed, label that limitation clearly rather than presenting it as an authoritative localized procedure. For high-consequence instructions, obtain a qualified bilingual technical review. The translate attribute can communicate author intent, but the final text still needs inspection because different tools may not honor it consistently.
- Save the intended translated text as actual document content.
- Label the language and whether the translation has been reviewed.
- Check exact identifiers and substantive conditions without relying on a live translation widget.
<p lang="en">Keep the identifier <code translate="no">request_id</code> unchanged.</p>Verify the offline result
Reopen the artifact without the translation service and ask a fluent reviewer to check the meaning of consequential passages.
Reopen the artifact without the translation service and verify the selected critical passages. Ask the reviewer to compare negation, optionality, conditions, and timing with the original, not merely assess natural phrasing. Keep the original-language reference available through an appropriate link or included excerpt when useful. When the source changes, mark the translated copy for review instead of assuming a live widget will update an already saved document. A fixed translation needs its own maintenance identity.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.