Skip to content

Commit

Permalink
Add Entry-Arduino eBook to the help menu of other lang
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongJun-Lee committed Jun 10, 2021
1 parent f1b22e5 commit 9d0cca4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/preload/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class Header extends Component<IProps, IState> {
[RendererUtils.getLang('Workspace.robot_guide'), 'help_robot']
),
[RendererUtils.getLang('Workspace.python_guide'), 'help_python'],
[RendererUtils.getLang('Workspace.entry_arduino_book'), 'help_ardu_book'],
];
}
}
Expand Down Expand Up @@ -129,7 +130,9 @@ class Header extends Component<IProps, IState> {
}

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);
}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/resources/lang/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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(サーバーに保存されます)",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/resources/lang/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -6754,6 +6754,7 @@
"hardware_guide": "하드웨어 연결 안내",
"robot_guide": "로봇 연결 안내",
"python_guide": "엔트리파이선 이용 안내",
"entry_arduino_book": "엔트리 아두이노 전자책",
"show_list_workspace": "리스트 노출",
"list_create_normal": "일반 리스트로 사용\n(작품에 저장)",
"list_create_cloud": "공유 리스트로 사용 \n(서버에 저장)",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/resources/lang/vn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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ủ)",
Expand Down

0 comments on commit 9d0cca4

Please sign in to comment.