diff --git a/types/react-email-editor/index.d.ts b/types/react-email-editor/index.d.ts index 95b2264cb2..433db1273a 100644 --- a/types/react-email-editor/index.d.ts +++ b/types/react-email-editor/index.d.ts @@ -73,6 +73,8 @@ export interface Features { readonly undoRedo?: boolean; } +export type Translations = Record>; + 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 { diff --git a/types/react-email-editor/react-email-editor-tests.tsx b/types/react-email-editor/react-email-editor-tests.tsx index ace06cad34..323823ae55 100644 --- a/types/react-email-editor/react-email-editor-tests.tsx +++ b/types/react-email-editor/react-email-editor-tests.tsx @@ -122,6 +122,11 @@ class App extends React.Component { imageEditor: false, undoRedo: true, }, + translations: { + en: { + 'custom.key': 'Custom translation', + }, + }, }} tools={TOOLS_CONFIG} appearance={{