AI Image Editor localization
The editor ships English eagerly and lazy-loads 34 other locales. Set the
active language with
localeName; the editor loads that
locale’s built-in strings on demand. Customize individual strings with
localeDefinitionOverride,
which is keyed by locale name and takes the same shape as the File
Uploader’s config. As a
plugin, both follow the uploader’s
localeName / localeDefinitionOverride automatically.
Supported locales: en ar az ca cs da de el es et fi fr he hy is it ja ka kk ko lv nb nl pl pt ro ru sk sr sv tr uk vi zh (and zh-TW). Browse the
translations on GitHub: the base
en.ts
and the
other locales.
Available strings
These are the keys you can override, shown with their English defaults (the
base locale,
enLocale).
Every locale provides this core set:
enLocale is exported if you need to look strings up outside the element:
Error messages
When a generation or edit fails, the editor maps the backend error_code to
an ai-image-editor-error-<code> key and shows that message. If no key matches
the code (or you haven’t translated it), it falls back to the generic
ai-image-editor-error. These per-code keys are optional in every locale, so
translate only the ones you care about and the rest fall back gracefully:
Platform validation. The request was rejected before generation started.
AI gateway. The job failed while the model ran.
Upload pipeline. The result couldn’t be saved.