mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 12:33:16 -05:00
The shared connector page kept its words in English text maps inside the components, and only Studio shipped translations. Move the maps to JSON bundles (addons/internal/connector-ui/src/i18n) and add bundles for the Telegram, Slack, Discord, GitHub, Jellyfin, Home Assistant and Talk pages in German, Spanish, French, Indonesian, Italian, Korean, Brazilian Portuguese and Simplified Chinese. English stays the default, and a key that a bundle lacks reads in English. Plural sentences now go through the translator, so each language picks its own plural form. The "More" and "optional" labels, the sender line and the dates follow the language of the page instead of the browser. A new gate, addons/internal/i18ncheck, fails when a language lacks a bundle, a bundle lacks a key or has an extra one, a placeholder differs from English or a value is empty. It runs in make test-i18n and so in the UI unit tests of CI, with no baseline. Playwright specs render the pages in Italian, check that no language runs text out of its box on a phone, and save screenshots when UI_SHOTS_DIR is set. Assisted-by: Claude:claude-sonnet-5-5 node