Skip to content

Commit

Permalink
导出预览
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed May 15, 2024
1 parent 0fa75ec commit 2f05df4
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"spellcheckTip": "After enabling, the browser's built-in spell check function will be used. Currently, only English spell check is supported",
"over": "over",
"preview": "Export Preview",
"copyToWechatMP": "Copy to Wechat MP",
"copyToZhihu": "Copy to Zhihu",
"copyToYuque": "Copy to Yuque",
"quote": "Blockquote",
"startRecord": "Start Record",
"endRecord": "End Record",
Expand Down
3 changes: 3 additions & 0 deletions app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"spellcheckTip": "Después de habilitar, se utilizará la función de revisión ortográfica integrada del navegador. Actualmente, solo se admite la revisión ortográfica en inglés",
"over": "sobre",
"preview": "Vista previa de la exportación",
"copyToWechatMP": "复制到公众号",
"copyToZhihu": "复制到知乎",
"copyToYuque": "复制到语雀",
"quote": "Párrafo cita",
"startRecord": "Iniciar grabación",
"endRecord": "Finalizar grabación",
Expand Down
3 changes: 3 additions & 0 deletions app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"spellcheckTip": "Après l'activation, la fonction de vérification orthographique intégrée du navigateur sera utilisée. Actuellement, seule la vérification orthographique en anglais est prise en charge",
"over": "over",
"preview": "Aperçu de l'exportation",
"copyToWechatMP": "复制到公众号",
"copyToZhihu": "复制到知乎",
"copyToYuque": "复制到语雀",
"quote": "Citation de bloc",
"startRecord": "Début d'enregistrement",
"endRecord": "fin d'enregistrement",
Expand Down
3 changes: 3 additions & 0 deletions app/appearance/langs/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"spellcheckTip": "ブラウザの組み込みスペルチェック機能を使用します。現時点では英語のスペルチェックのみがサポートされています",
"over": "以上",
"preview": "プレビュー",
"copyToWechatMP": "复制到公众号",
"copyToZhihu": "复制到知乎",
"copyToYuque": "复制到语雀",
"quote": "引用",
"startRecord": "録音開始",
"endRecord": "録音停止",
Expand Down
3 changes: 3 additions & 0 deletions app/appearance/langs/zh_CHT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"spellcheckTip": "啟用後將使用瀏覽器內置的拼寫檢查功能,目前僅支持英文拼寫檢查",
"over": "超過",
"preview": "匯出預覽",
"copyToWechatMP": "复制到公众号",
"copyToZhihu": "复制到知乎",
"copyToYuque": "复制到语雀",
"quote": "引述",
"startRecord": "開始錄音",
"endRecord": "結束錄音",
Expand Down
3 changes: 3 additions & 0 deletions app/appearance/langs/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@
"spellcheckTip": "启用后将使用浏览器内置的拼写检查功能,目前仅支持英文拼写检查",
"over": "超过",
"preview": "导出预览",
"copyToWechatMP": "复制到公众号",
"copyToZhihu": "复制到知乎",
"copyToYuque": "复制到语雀",
"quote": "引述",
"startRecord": "开始录音",
"endRecord": "结束录音",
Expand Down
6 changes: 3 additions & 3 deletions app/src/protyle/preview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export class Preview {
actionHtml.push('<button type="button" data-type="mobile">Mobile/Wechat</button>');
break;
case "mp-wechat":
actionHtml.push('<button type="button" data-type="mp-wechat" class="b3-tooltips b3-tooltips__w" aria-label="复制到公众号"><svg><use xlink:href="#iconMp"></use></svg></button>');
actionHtml.push('<button type="button" data-type="mp-wechat" class="b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.copyToWechatMP}"><svg><use xlink:href="#iconMp"></use></svg></button>');
break;
case "zhihu":
actionHtml.push('<button type="button" data-type="zhihu" class="b3-tooltips b3-tooltips__w" aria-label="复制到知乎"><svg><use xlink:href="#iconZhihu"></use></svg></button>');
actionHtml.push('<button type="button" data-type="zhihu" class="b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.copyToZhihu}"><svg><use xlink:href="#iconZhihu"></use></svg></button>');
break;
case "yuque":
actionHtml.push('<button type="button" data-type="yuque" class="b3-tooltips b3-tooltips__w" aria-label="复制到语雀"><svg><use xlink:href="#iconYuque"></use></svg></button>');
actionHtml.push('<button type="button" data-type="yuque" class="b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.copyToYuque}"><svg><use xlink:href="#iconYuque"></use></svg></button>');
break;
}
}
Expand Down

0 comments on commit 2f05df4

Please sign in to comment.