Settings: add translations
All checks were successful
/ depoly (push) Successful in 1m21s

This commit is contained in:
thislight 2025-01-02 18:20:44 +08:00
parent 0de2b91abc
commit af9f111b27
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
3 changed files with 18 additions and 6 deletions

View file

@ -272,13 +272,13 @@ const Settings: Component = () => {
<Divider /> <Divider />
</li> </li>
<li> <li>
<ListSubheader>Storage</ListSubheader> <ListSubheader>{t("storage")}</ListSubheader>
<ListItemButton disabled> <ListItemButton disabled>
<ListItemIcon> <ListItemIcon>
<DeleteForever /> <DeleteForever />
</ListItemIcon> </ListItemIcon>
<ListItemText secondary={"The cache is managed by your browser."}> <ListItemText secondary={t("storage.cache.UA-managed")}>
Clear cache... {t("storage.cache.clear")}
</ListItemText> </ListItemText>
</ListItemButton> </ListItemButton>
</li> </li>
@ -324,7 +324,7 @@ const Settings: Component = () => {
secondaryAction={ secondaryAction={
<IconButton <IconButton
component={A} component={A}
aria-label="Open Tutu's Mastodon" aria-label={t("mastodonlink.open")}
href={`/${encodeURIComponent(profiles().length > 0 ? makeAcctText(profiles()[0]) : "@")}/profile/@tutu@indieweb.social`} href={`/${encodeURIComponent(profiles().length > 0 ? makeAcctText(profiles()[0]) : "@")}/profile/@tutu@indieweb.social`}
> >
<MastodonLogo /> <MastodonLogo />

View file

@ -33,5 +33,11 @@
"motions.gifs": "GIFs", "motions.gifs": "GIFs",
"motions.gifs.autoplay": "Auto-play GIFs", "motions.gifs.autoplay": "Auto-play GIFs",
"motions.vids": "Videos", "motions.vids": "Videos",
"motions.vids.autoplay": "Auto-play Videos" "motions.vids.autoplay": "Auto-play Videos",
"storage": "Storage",
"storage.cache.clear": "Clear Cache",
"storage.cache.UA-managed": "Cache is managed by your browser.",
"mastodonlink.open": "Open Tutu's Mastodon"
} }

View file

@ -33,5 +33,11 @@
"motions.gifs": "动图", "motions.gifs": "动图",
"motions.gifs.autoplay": "自动播放动图", "motions.gifs.autoplay": "自动播放动图",
"motions.vids": "视频", "motions.vids": "视频",
"motions.vids.autoplay": "自动播放视频" "motions.vids.autoplay": "自动播放视频",
"storage": "存储空间",
"storage.cache.clear": "清除缓存",
"storage.cache.UA-managed": "缓存由你的浏览器管理。",
"mastodonlink.open": "打开图图的Mastodon账户"
} }