diff --git a/localization/locales/en/translation.json b/localization/locales/en/translation.json
index da9e65d3..cba2e6a3 100644
--- a/localization/locales/en/translation.json
+++ b/localization/locales/en/translation.json
@@ -85,7 +85,8 @@
"TagName": "Tag Name",
"TagNameHelp": "Tiddlers with this Tag will be add to this sub-wiki (you can add or change this Tag later, by right-click workspace Icon and choose Edit Workspace)",
"GitToken": "Git Token",
- "GitTokenDescription": "The credentials used to log in to Git. Will expire after a certain period of time"
+ "GitTokenDescription": "The credentials used to log in to Git. Will expire after a certain period of time",
+ "NoGitInfoAlert": "You haven't selected an online Git repo address, or you haven't successfully logged in to your Github account. Click the Create button will create a local wiki that will not be automatically sync to Github. Please be aware."
},
"EditWorkspace": {
"Path": "Wiki Path",
diff --git a/localization/locales/zh_CN/translation.json b/localization/locales/zh_CN/translation.json
index 178b683c..f3b316e6 100644
--- a/localization/locales/zh_CN/translation.json
+++ b/localization/locales/zh_CN/translation.json
@@ -85,7 +85,8 @@
"StartLinkingSubWikiToMainWiki": "开始链接子Wiki到父Wiki",
"AddFileSystemPath": "正在为子Wiki添加FileSystemPaths",
"TagName": "标签名",
- "TagNameHelp": "加上此标签的笔记将会自动被放入这个子知识库内(可先不填,之后右键点击这个工作区的图标选择编辑工作区修改)"
+ "TagNameHelp": "加上此标签的笔记将会自动被放入这个子知识库内(可先不填,之后右键点击这个工作区的图标选择编辑工作区修改)",
+ "NoGitInfoAlert": "你未选择在线Git仓库地址,或未成功登录Github账号(可能被墙)。点击创建按钮将创建一个不会自动同步到Github的本地仓库,请注意。"
},
"EditWorkspace": {
"Path": "Wiki的位置",
diff --git a/src/components/dialog-add-workspace/new-wiki-done-button.js b/src/components/dialog-add-workspace/new-wiki-done-button.js
index c1772764..73dd2043 100644
--- a/src/components/dialog-add-workspace/new-wiki-done-button.js
+++ b/src/components/dialog-add-workspace/new-wiki-done-button.js
@@ -87,11 +87,16 @@ function NewWikiDoneButton({
{wikiCreationMessage}
+ {isCreateMainWorkspace && (!githubWikiUrl || !userInfo) && (
+
+ {t('AddWorkspace.NoGitInfoAlert')}
+
+ )}
{isCreateMainWorkspace ? (
{
updateForm(workspaceFormData);
setWikiCreationMessage(t('AddWorkspace.Processing'));