Two languages, each with its own addresses
English pages live at dok.sh/…, Bulgarian ones at dok.sh/bg/…. Every page exists in both, links to its pair, and search engines index each language separately.
The problem
Many bilingual sites keep one address and switch the language with a button that stores a cookie. A search engine then sees one language only, and a link sent to a Bulgarian client may open in English.
How dok.sh solves it
- The language is in the address.
/use-casesis English,/bg/use-casesis Bulgarian. On Bulgarian pages the app's base address is/bg/, so every internal link stays in Bulgarian. - The language switch is a real link to the same page in the other language, not a setting.
- Every text has two values. Each field in the admin has an English and a Bulgarian version, and the list of items marks entries where one language is missing.
- hreflang and canonical addresses on every page, both languages in the sitemap, and page titles and descriptions written per language.
- The admin itself can be used in either language, independently of the content being edited.

The result
Bulgarian clients find Bulgarian pages in search, and a shared link opens in the language it was sent in.
Technologies
Angular, i18n, SEO
- Published: 2026-11-03
- Project: dok.sh — Portfolio and CV Platform
- Case study