A translation is a revision of the same business information, not simply another URL. If English terms change but the Nepali version still describes the old offer, the language selector can become an inconsistent contract.
A 180-document publishing simulation
We created 180 synthetic English source documents. Every fourth has no Nepali translation; every seventh is flagged stale. A naive policy emits a Nepali alternate for every source. A publication-aware policy emits one only when a translation exists and is not stale.
| Translation state | Documents |
|---|---|
| English sources | 180 |
| Nepali text exists | 135 |
| Current translated pairs | 116 |
| Missing or stale alternates | 64 |
The count of existing translations overstates current pairs by 19. A naive policy creates 64 inappropriate alternates in this intentionally constructed dataset. The fixture is not a translation audit of the Code Deb website.
Revision identity should survive localization
type Translation = {
locale: "en-NP" | "ne-NP";
sourceRevision: number;
reviewed: boolean;
path: string;
};
function eligible(t: Translation, current: number) {
return t.reviewed && t.sourceRevision === current;
}
Keep the same content identity for shared prices, policies and product records. Translation status must be tied to the source revision; a text field marked published cannot remain silently approved forever. Nepal Content models language-specific review states. Some editorial changes may not require retranslation, but that should be a recorded reviewer decision, not an automatic assumption.
Devanagari typography is a browser rendering concern
Unicode names may contain combining signs and conjuncts. Do not implement a visible-character limit using JavaScript string length alone, and do not assume truncating by code unit produces a legible word. Test actual line wrapping, font coverage, input caret behavior and long labels. The WCAG reflow guidance uses a 320 CSS-pixel width for ordinary vertically scrolling content. Preeti conversion is a migration utility, not a replacement for font shaping or proofreading.
Alternates should describe equivalent published pages
Google's localized page documentation requires return relationships between language variants. Use unique locale-specific canonical URLs and titles, and avoid asserting a real translated page when it contains only English fallback. For an unpublished translation, choose a deliberate editorial fallback policy rather than generating a duplicate indexable URL. Programmatic SEO research addresses the route generator.
A bilingual release is a data reconciliation job
Count complete current pairs, translations waiting for review, invalid return links and missing labels. Validate language-specific form input without forcing personal names into Latin script. Check a product or address after a source revision and verify what each language shows. Locality names and identity demonstrates why translations and keys differ. The simulation motivates publication filtering; actual translation quality needs review by a competent Nepali editor.
Method and reproducibility: Controlled synthetic model. See Code Deb's recorded experiment results and reproduction script in the repository. Figures are reproducible from declared inputs, not undisclosed client outcomes. The cited external material is independent of Code Deb's experiment.