Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"statusNone": "You are up to date.",
"statusError": "Update error",
"statusDownloaded": "Update downloaded",
"autoUpdate": "Auto Update"
"autoUpdate": "Auto Update",
"beta": "Beta",
"betaDescription": "Join the beta channel to get early access to new features and improvements. Please note that beta versions are not thoroughly tested, may be less stable than official releases, and may contain critical bugs. Downgrade is not supported. Use with caution."
},
"permission": {
"title": "Permissions",
Expand Down
4 changes: 3 additions & 1 deletion src/i18n/locales/zh-hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"statusNone": "当前已是最新版本。",
"statusError": "更新出错",
"statusDownloaded": "更新已下载",
"autoUpdate": "自动更新"
"autoUpdate": "自动更新",
"beta": "Beta版",
"betaDescription": "开启Beta版本的更新,提前体验新功能和改进。请注意,Beta版没有经过充分测试,可能不如正式版稳定,并可能出现严重错误。不支持降级。请谨慎使用。"
},
"permission": {
"title": "权限",
Expand Down
4 changes: 3 additions & 1 deletion src/i18n/locales/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"statusNone": "目前已是最新版本。",
"statusError": "更新錯誤",
"statusDownloaded": "更新已下載",
"autoUpdate": "自動更新"
"autoUpdate": "自動更新",
"beta": "Beta版",
"betaDescription": "開啟Beta版本的更新,提前體驗新功能和改進。請注意,Beta版沒有經過充分測試,可能不如正式版穩定,並可能出現嚴重錯誤。不支援降級。請謹慎使用。"
},
"permission": {
"title": "權限",
Expand Down
21 changes: 21 additions & 0 deletions src/pages/Settings/SettingsGeneral.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,27 @@ function SettingsGeneral({ settings, permissions, onSettingsChange }: SettingsGe
</div>
</CardBody>
</Card>
<Card className="w-full my-5 border-1 border-gray-100" shadow="none">
<CardHeader className="flex gap-3 justify-between items-center">
<h4 className="font-bold">{t('settings.general.update.beta')}</h4>
<Switch
size="sm"
defaultSelected={settings.autoUpdate?.betaChannel}
onValueChange={(value) =>
onSettingsChange(['general', 'autoUpdate', 'betaChannel'], value)
}
>
{t('common.enabled')}
</Switch>
</CardHeader>
<CardBody className="flex flex-col gap-4">
<div className="grid grid-cols-[1fr_auto] items-center gap-4">
<div className="text-xs text-gray-500">
{t('settings.general.update.betaDescription')}
</div>
</div>
</CardBody>
</Card>
</div>
</div>
);
Expand Down