🤖 Merge PR #46004 [react-email-editor] Added translation key to unlayer options by @Mindtraveller

* Added translation key to unlayer options, docs https://docs.unlayer.com/docs/localization#overriding-translations

* Fix lint
This commit is contained in:
Vladimir Penyazkov 2020-07-10 19:55:06 +03:00 committed by GitHub
parent 3839e8d6ed
commit db10cf8903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,8 @@ export interface Features {
readonly undoRedo?: boolean;
}
export type Translations = Record<string, Record<string, string>>;
export type DisplayMode = 'email' | 'web';
export interface UnlayerOptions {
readonly id?: string;
@ -91,6 +93,7 @@ export interface UnlayerOptions {
readonly customJS?: string[];
readonly customCSS?: string[];
readonly features?: Features;
readonly translations?: Translations;
}
export interface EmailEditorProps {

View File

@ -122,6 +122,11 @@ class App extends React.Component {
imageEditor: false,
undoRedo: true,
},
translations: {
en: {
'custom.key': 'Custom translation',
},
},
}}
tools={TOOLS_CONFIG}
appearance={{