diff --git a/.changeset/green-foxes-rhyme.md b/.changeset/green-foxes-rhyme.md new file mode 100644 index 00000000..6a8f26ed --- /dev/null +++ b/.changeset/green-foxes-rhyme.md @@ -0,0 +1,34 @@ +--- +'@difizen/libro-jupyter': patch +'@difizen/libro-l10n': patch +'@difizen/libro-lab': patch +'@difizen/libro-docs': patch +'@difizen/libro-code-cell': patch +'@difizen/libro-code-editor': patch +'@difizen/libro-codemirror': patch +'@difizen/libro-cofine-editor': patch +'@difizen/libro-cofine-editor-contribution': patch +'@difizen/libro-cofine-editor-core': patch +'@difizen/libro-cofine-textmate': patch +'@difizen/libro-common': patch +'@difizen/libro-core': patch +'@difizen/libro-kernel': patch +'@difizen/libro-language-client': patch +'@difizen/libro-lsp': patch +'@difizen/libro-markdown': patch +'@difizen/libro-markdown-cell': patch +'@difizen/libro-output': patch +'@difizen/libro-prompt-cell': patch +'@difizen/libro-raw-cell': patch +'@difizen/libro-rendermime': patch +'@difizen/libro-search': patch +'@difizen/libro-search-code-cell': patch +'@difizen/libro-shared-model': patch +'@difizen/libro-sql-cell': patch +'@difizen/libro-terminal': patch +'@difizen/libro-toc': patch +'@difizen/libro-virtualized': patch +'@difizen/libro-widget': patch +--- + +fix: fix some bilingual text error diff --git a/README.md b/README.md index 9847815e..d290178d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Language version: [English](./README.md) | [中文](./README_zh.md) If you like this project, feel free to give us a star! 🌟🌟🌟 -![image](./apps/docs/public/libro.png) +![image](./apps/docs/public/libro_en.png) --- @@ -123,7 +123,7 @@ import { LibroJupyterModule } from "@difizen/libro-jupyter"; ### Contact Us -💬 [Chat with us on Discord](https://discord.gg/pK8X3guD) +💬 [Chat with us on Discord](https://discord.gg/RbZ9aEKK) 🤗 [Join our DingTalk Q&A group](https://qr.dingtalk.com/action/joingroup?code=v1,k1,52f1gKWwsZBMrWjXHcQFlOJEQIbbrMO86Iulu3T3ePY=&_dt_no_comment=1&origin=11) diff --git a/README_zh.md b/README_zh.md index c084e5d8..33217949 100644 --- a/README_zh.md +++ b/README_zh.md @@ -123,7 +123,7 @@ import { LibroJupyterModule } from "@difizen/libro-jupyter"; ### 联系我们 -💬 [加入 Discord](https://discord.gg/pK8X3guD) +💬 [加入 Discord](https://discord.gg/RbZ9aEKK) 🤗 [加入钉钉答疑群](https://qr.dingtalk.com/action/joingroup?code=v1,k1,52f1gKWwsZBMrWjXHcQFlOJEQIbbrMO86Iulu3T3ePY=&_dt_no_comment=1&origin=11) diff --git a/apps/docs/public/libro_en.png b/apps/docs/public/libro_en.png new file mode 100644 index 00000000..e20778df Binary files /dev/null and b/apps/docs/public/libro_en.png differ diff --git a/packages/libro-jupyter/src/keybind-instructions/keybind-instructions-contribution.ts b/packages/libro-jupyter/src/keybind-instructions/keybind-instructions-contribution.tsx similarity index 96% rename from packages/libro-jupyter/src/keybind-instructions/keybind-instructions-contribution.ts rename to packages/libro-jupyter/src/keybind-instructions/keybind-instructions-contribution.tsx index d0f9d5bc..39d71d44 100644 --- a/packages/libro-jupyter/src/keybind-instructions/keybind-instructions-contribution.ts +++ b/packages/libro-jupyter/src/keybind-instructions/keybind-instructions-contribution.tsx @@ -37,7 +37,7 @@ export class KeybindInstructionsContribution icon: KeybindInstructionsIcon, command: KeybindInstructionsCommand.id, order: 'l', - tooltip: l10n.t('查看快捷键'), + tooltip: () =>
{l10n.t('查看快捷键')}
, }); } diff --git a/packages/libro-l10n/src/lang/bundle.l10n.en-US.json b/packages/libro-l10n/src/lang/bundle.l10n.en-US.json index 57716a22..80e010f1 100644 --- a/packages/libro-l10n/src/lang/bundle.l10n.en-US.json +++ b/packages/libro-l10n/src/lang/bundle.l10n.en-US.json @@ -3,7 +3,7 @@ "在 Output 中查找": "Find in output", "替换功能不能在 Output 生效": "The replacement function cannot take effect in output.", "仅在选中 Cell 中查找": "Only find in the selected cell", - "当前文件:": "Current file: ", + "当前文件:": "Current file: ", "当前变量名已存在": "The current variable name already exists.", "是否显示libro顶部工具栏": "Whether to show the top toolbar of libro", "顶部工具栏": "Top toolbar", diff --git a/packages/libro-lab/src/layout/footer/current-file-footer-view.tsx b/packages/libro-lab/src/layout/footer/current-file-footer-view.tsx index 2615cf03..d039decd 100644 --- a/packages/libro-lab/src/layout/footer/current-file-footer-view.tsx +++ b/packages/libro-lab/src/layout/footer/current-file-footer-view.tsx @@ -18,12 +18,15 @@ const CurrentFileFooterComponent = React.forwardRef(function CurrentFileFooterCo ref: React.ForwardedRef, ) { const currentFileFooterView = useInject(ViewInstance); - + const label = currentFileFooterView.navigatableView?.title.label; return (
- {`${l10n.t('当前文件:')}${ - currentFileFooterView.navigatableView?.title.label || '' - }`} + {l10n.t('当前文件:')} + { + typeof label === 'function' + ? React.createElement(label) // 如果是 React.FC,调用它 + : label /* 如果是 ReactNode,直接渲染 */ + }
); });