feat(i18n): support i18n in app version (#3263)

This commit is contained in:
Camol
2023-07-17 16:03:50 +08:00
committed by Alex Yang
parent 6ddc56632e
commit 691eb3cb2d
3 changed files with 9 additions and 2 deletions

View File

@@ -27,8 +27,11 @@ export const AboutAffine = () => {
data-testid="about-title" data-testid="about-title"
/> />
<SettingWrapper title={t['Version']()}> <SettingWrapper title={t['Version']()}>
<SettingRow name="App Version" desc={runtimeConfig.appVersion} /> <SettingRow name={t['App Version']()} desc={runtimeConfig.appVersion} />
<SettingRow name="Editor Version" desc={runtimeConfig.editorVersion} /> <SettingRow
name={t['Editor Version']()}
desc={runtimeConfig.editorVersion}
/>
{runtimeConfig.enableNewSettingUnstableApi && environment.isDesktop ? ( {runtimeConfig.enableNewSettingUnstableApi && environment.isDesktop ? (
<> <>
<SettingRow <SettingRow

View File

@@ -360,6 +360,8 @@
"Move Down": "Move Down", "Move Down": "Move Down",
"Ungroup": "Ungroup", "Ungroup": "Ungroup",
"Version": "Version", "Version": "Version",
"App Version": "App Version",
"Editor Version": "Editor Version",
"frameless": "Frameless", "frameless": "Frameless",
"Check for updates automatically": "Check for updates automatically", "Check for updates automatically": "Check for updates automatically",
"Note": "Note", "Note": "Note",

View File

@@ -317,6 +317,8 @@
"Terms of Use": "使用条款", "Terms of Use": "使用条款",
"Unpublished hint": "发布到网络后,访问者可以通过提供的链接查看内容。", "Unpublished hint": "发布到网络后,访问者可以通过提供的链接查看内容。",
"Version": "版本", "Version": "版本",
"App Version": "应用版本",
"Editor Version": "编辑器版本",
"Window frame style": "视窗样式", "Window frame style": "视窗样式",
"Workspace Profile": "工作区配置文件", "Workspace Profile": "工作区配置文件",
"Workspace saved locally": "{{name}} 已保存在本地", "Workspace saved locally": "{{name}} 已保存在本地",