096b067d45
* feat: add translation support * test(cypress): fix locale import * docs: add locale documentation * feat: add german translation (#2877) * fix: locales package version, register all locales in netlify-cms
18 lines
357 B
JavaScript
18 lines
357 B
JavaScript
import { en } from '../../packages/netlify-cms-locales/src';
|
|
|
|
// Prevents unsaved changes in dev local storage from being used
|
|
Cypress.on('window:confirm', message => {
|
|
const {
|
|
editor: {
|
|
editor: { confirmLoadBackup },
|
|
},
|
|
} = en;
|
|
|
|
switch (message) {
|
|
case confirmLoadBackup:
|
|
return false;
|
|
default:
|
|
return true;
|
|
}
|
|
});
|