mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 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:
parent
3839e8d6ed
commit
db10cf8903
3
types/react-email-editor/index.d.ts
vendored
3
types/react-email-editor/index.d.ts
vendored
@ -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 {
|
||||
|
||||
@ -122,6 +122,11 @@ class App extends React.Component {
|
||||
imageEditor: false,
|
||||
undoRedo: true,
|
||||
},
|
||||
translations: {
|
||||
en: {
|
||||
'custom.key': 'Custom translation',
|
||||
},
|
||||
},
|
||||
}}
|
||||
tools={TOOLS_CONFIG}
|
||||
appearance={{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user