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 error’s code to an
ai-image-editor-error-<code> key and shows that message. A code it has never
heard of falls back to the generic ai-image-editor-error. Every key is
optional in every locale, so translate only the ones you care about and the
rest fall back to English:
Several codes deliberately read the same. These messages are for the person
using your site, who knows nothing about your Uploadcare project and can’t fix
it, so a failure they can’t act on says only “Something went wrong. Try again.”
and every token failure says the same line. The code itself is never lost: it’s
on the uc:error event and in the console,
where you can act on it.
localeDefinitionOverride.