diff --git a/src/preload/preload.ts b/src/preload/preload.ts index 1f83fdfe4..1b2d62421 100644 --- a/src/preload/preload.ts +++ b/src/preload/preload.ts @@ -58,7 +58,11 @@ window.openEntryWebPage = () => { }; window.openEntryArduBookWebPage = () => { - shell.openExternal('https://neopia-uz.gitbook.io/entry-arduino'); + if (Lang == 'uz') { + shell.openExternal('https://neopia-uz.gitbook.io/entry-arduino'); + } else { + shell.openExternal('https://jjlee.gitbook.io/entry-arduino'); + } }; window.openHardwarePage = () => { diff --git a/src/renderer/components/header.tsx b/src/renderer/components/header.tsx index 6f1605130..2a3283333 100644 --- a/src/renderer/components/header.tsx +++ b/src/renderer/components/header.tsx @@ -81,6 +81,7 @@ class Header extends Component { [RendererUtils.getLang('Workspace.robot_guide'), 'help_robot'] ), [RendererUtils.getLang('Workspace.python_guide'), 'help_python'], + [RendererUtils.getLang('Workspace.entry_arduino_book'), 'help_ardu_book'], ]; } } @@ -129,7 +130,9 @@ class Header extends Component { } getLangValue() { - this.props.persist.lang = window.getSharedObject().language == 'uz' ? 'uz' : 'ko'; + if (window.getSharedObject().language === 'uz') { + this.props.persist.lang = 'uz'; + } const lang = this.props.persist.lang; return _get(Lang, lang); } diff --git a/src/renderer/resources/lang/en.json b/src/renderer/resources/lang/en.json index c7aea8d55..fc3013c2f 100644 --- a/src/renderer/resources/lang/en.json +++ b/src/renderer/resources/lang/en.json @@ -6747,6 +6747,7 @@ "hardware_guide": "Hardware Guide", "robot_guide": "Robot Guide", "python_guide": "Entry Python Guide", + "entry_arduino_book": "Entry Arduino eBook", "show_list_workspace": "Show list", "list_create_normal": "Use for list\n(Stored in Project)", "list_create_cloud": "Use for shared list \n(Stored in Server)", diff --git a/src/renderer/resources/lang/jp.json b/src/renderer/resources/lang/jp.json index 55b70f6c0..3bf2c79e4 100644 --- a/src/renderer/resources/lang/jp.json +++ b/src/renderer/resources/lang/jp.json @@ -6755,6 +6755,7 @@ "hardware_guide": "ハードウェア結合案内", "robot_guide": "ロボット連結案内", "python_guide": "エントリーパイソン利用案内", + "entry_arduino_book": "Entry Arduino eBook", "show_list_workspace": "リスト表示", "list_create_normal": "リストとして使用\n(作品に保存)", "list_create_cloud": "共有リストとして使用\n(サーバーに保存されます)", diff --git a/src/renderer/resources/lang/ko.json b/src/renderer/resources/lang/ko.json index 8f8e06dd1..a4da9bfe1 100644 --- a/src/renderer/resources/lang/ko.json +++ b/src/renderer/resources/lang/ko.json @@ -6754,6 +6754,7 @@ "hardware_guide": "하드웨어 연결 안내", "robot_guide": "로봇 연결 안내", "python_guide": "엔트리파이선 이용 안내", + "entry_arduino_book": "엔트리 아두이노 전자책", "show_list_workspace": "리스트 노출", "list_create_normal": "일반 리스트로 사용\n(작품에 저장)", "list_create_cloud": "공유 리스트로 사용 \n(서버에 저장)", diff --git a/src/renderer/resources/lang/vn.json b/src/renderer/resources/lang/vn.json index f517925e5..92d9abdd6 100644 --- a/src/renderer/resources/lang/vn.json +++ b/src/renderer/resources/lang/vn.json @@ -6747,6 +6747,7 @@ "hardware_guide": "Hướng dẫn phần cứng", "robot_guide": "Robot Guide", "python_guide": "Entry Python Guide", + "entry_arduino_book": "Entry Arduino eBook", "show_list_workspace": "hiển thị danh sách", "list_create_normal": "Use for list\n(Stored in Project)", "list_create_cloud": "sử dụng cho danh sách chia sẻ \n(được lưu trữ trong máy chủ)",