Skip to content

Commit 20c3cdd

Browse files
authored
Version 1.0.3 - Support lang property (#45)
1 parent 41f1195 commit 20c3cdd

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.3
2+
- Added `lang` property for defining a language.
3+
4+
15
# 1.0.2
26
- Added support for React 19
37

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-drawio",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"type": "module",
55
"description": "React component for integrating the Diagrams (draw.io) embed iframe",
66
"main": "index.js",

src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export type UrlParameters = {
143143
* Shows the Close button in chromeless mode which closes the window when selected.
144144
*/
145145
close?: boolean;
146+
/**
147+
* Specifies the language of the user interface. For possible values, see https://www.drawio.com/doc/faq/supported-url-parameters
148+
*/
149+
lang?: string;
146150
};
147151

148152
type ExportFormats = 'html' | 'html2' | 'svg' | 'xmlsvg' | 'png' | 'xmlpng';

stories/DiagramsEmbed.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,3 +429,11 @@ export const ReadOnly: Story = {
429429
}
430430
]
431431
};
432+
433+
export const OtherLanguage: Story = {
434+
args: {
435+
urlParameters: {
436+
lang: 'nl'
437+
},
438+
}
439+
};

0 commit comments

Comments
 (0)