update the script and support both notionnext and general database

This commit is contained in:
Jiaxin Peng
2023-11-05 17:32:10 +00:00
parent 8617878582
commit 398b785e03
14 changed files with 650 additions and 410 deletions

View File

@@ -1,12 +1,15 @@
export const I18n: { [key: string]: any } = {
en: {
ribbonIcon: "Share to NotionNext",
CommandName: "share to notionnext",
CommandNameGeneral: "share to notion",
GeneralSetting: "General information Settings",
CommandID: "share-to-notionnext",
CommandName: "Share to NotionNext Database",
CommandIDGeneral: "share-to-notion",
CommandNameGeneral: "Share to Notion General Database",
NotionNextVersion: "NotionNext Version Database",
NotionNextVersionDesc:
"Turn on this option if you are using NotionNext",
NotionNextSetting: "NotionNext Database Settings",
NotionNextSettingHeader: "NotionNext Database Settings",
NotionAPI: "Notion API Token",
NotionAPIDesc: "It's a secret",
NotionAPIText: "Enter your Notion API Token",
@@ -20,7 +23,7 @@ export const I18n: { [key: string]: any } = {
NotionUserDesc:
"Your notion ID (optional),share link likes:https://username.notion.site/,your notion id is [username]",
NotionUserText: "Enter your notion ID (options)",
NotionGeneralSetting: "General Notion Database Settings",
NotionGeneralSettingHeader: "General Notion Database Settings",
NotYetFinish:
"Not finished. This function will be available in the next version",
PlaceHolder: "Enter database Name",
@@ -41,11 +44,14 @@ export const I18n: { [key: string]: any } = {
},
zh: {
ribbonIcon: "分享到 NotionNext",
GeneralSetting: "通用信息设置",
CommandID: "share-to-notionnext",
CommandName: "分享到 NotionNext",
CommandNameGeneral: "分享到 Notion",
CommandIDGeneral: "share-to-notion",
CommandNameGeneral: "分享到 Notion 普通数据库",
NotionNextVersion: "NotionNext 版本数据库",
NotionNextVersionDesc: "如果你使用的是NotionNext请打开此选项",
NotionNextSetting: "NotionNext 数据库参数设置",
NotionNextSettingHeader: "NotionNext 数据库参数设置",
NotionAPI: "Notion API 令牌",
NotionAPIDesc: "显示为密码",
NotionAPIText: "输入你的 Notion API 令牌",
@@ -59,7 +65,7 @@ export const I18n: { [key: string]: any } = {
NotionUserDesc:
"你的 Notion ID可选分享链接类似https://username.notion.site/,你的 Notion ID 是 [username]",
NotionUserText: "输入你的 Notion ID可选",
NotionGeneralSetting: "普通 Notion 数据库设置",
NotionGeneralSettingHeader: "普通 Notion 数据库设置",
NotYetFinish: "未完成。此功能将在之后版本中提供",
PlaceHolder: "输入数据库名称",
"notion-logo": "分享到NotionNext",