/** * Shared builders for the `🌐 **Languages:** …` bars that head every English * doc and every translated mirror. `config` is the parsed `config/i18n.json` * (`locales[]` with `code`, `flag`, `native`); all paths are repo-relative POSIX * (`docs/guides/USER_GUIDE.md`, `README.md`) and the links are relative to the * file that carries the bar. * * buildMirrorBar(rel, locale, config) β†’ docs/i18n//… format: * 🌐 **Languages:** πŸ‡ΊπŸ‡Έ [English](../../../README.md) Β· πŸ‡ΈπŸ‡¦ [ar](../ar/README.md) Β· … * buildSourceBar(rel, config) β†’ English source format: * 🌐 **Languages:** πŸ‡ΊπŸ‡Έ [English](./USER_GUIDE.md) | πŸ‡§πŸ‡· [PortuguΓͺs (Brasil)](../i18n/pt-BR/docs/guides/USER_GUIDE.md) | … * replaceLanguageBar(markdown, bar) β†’ swaps EVERY language-bar line (any * `🌐 **