This is the archived documentation for Doka Image Editor v7.
Please visit pqina.nl/pintura/docs/ to see documentation for the latest version of Pintura Image Editor.
Can labels be changed to a different language?
Currently Doka Image Editor includes en_gb
locale files.
We can set our own labels by updating label properties in the locale objects or by duplicating the locale files and translating the label values there.
import {
appendEditor,
locale_en_gb,
plugin_crop_locale_en_gb,
} from './doka.js';
const locale = {
...locale_en_gb,
...plugin_crop_locale_en_gb,
};
locale.labelButtonExport = 'Save';
// set locale to the editor
appendEditor('.my-editor', { locale });