← All writing

Maintainability

Writing

const alternateLink = document.querySelector('[data-language-switch]');
const target = new URL(alternateLink.href);
target.search = location.search;
target.hash = location.hash;
location.href = target.href;

Publishing one article in two languages

How this site keeps its English and Turkish editions together: one content record, stable addresses, a language switch that keeps your place, and a build that refuses missing translations.

ArchitectureMaintainability