Back to direction

Content production systems

LANG: website localization API with a glossary and cache

A localization service that manages language settings, a glossary and a translation cache per connected website.

LocalizationAPICloudflare WorkersD1
LANG check showing source and translated strings from a glossary and cache.
Offline localization handler check with EN → RO test strings.

Keeping site terminology consistent

Editors need to reuse approved terms and avoid requesting new translations for strings that already exist on the same site.

How the API handles a translation

The API checks the site and language settings. For each string, it checks the glossary for an exact match, then looks for a cached result.

What the offline check showed

The real handler returned two fixture strings in order, one from the glossary and one from the cache. It rejected an unsupported language and an invalid key. This run made no model calls.