Can labels be changed to a different language?

Currently Pintura 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 './pintura.js';

const locale = {
    ...locale_en_gb,
    ...plugin_crop_locale_en_gb,
};

locale.labelButtonExport = 'Save';

// set locale to the editor
appendEditor('.my-editor', { locale });