diff --git a/apps/pwa/src/i18n/en_us.ts b/apps/pwa/src/i18n/en_us.ts index bdc86736..5aceb442 100644 --- a/apps/pwa/src/i18n/en_us.ts +++ b/apps/pwa/src/i18n/en_us.ts @@ -109,4 +109,5 @@ export default { fork_from: 'fork-from', add: 'add', image_select_placeholder: 'select a image with jpeg/png format', + pwa_update_question: 'do you want to reload to switch new version of cicada?', }; diff --git a/apps/pwa/src/i18n/zh_hans.ts b/apps/pwa/src/i18n/zh_hans.ts index 83a688f7..1a03e94a 100644 --- a/apps/pwa/src/i18n/zh_hans.ts +++ b/apps/pwa/src/i18n/zh_hans.ts @@ -106,6 +106,9 @@ const zhCN: { one_of_formats: '以下格式的一种: %s1', modify_fork_from: '修改二次创作来源', fork_from: '二次创作来源', + add: '添加', + image_select_placeholder: '选择 jpeg/png 格式的图片', + pwa_update_question: '检查到新版本, 是否马上加载?', }; export default zhCN; diff --git a/apps/pwa/src/index.tsx b/apps/pwa/src/index.tsx index ffa94013..bf2f3664 100644 --- a/apps/pwa/src/index.tsx +++ b/apps/pwa/src/index.tsx @@ -10,6 +10,8 @@ import sleep from '#/utils/sleep'; import App from './app'; import definition from './definition'; import Unsupported from './unsupported'; +import { t } from './i18n'; +import upperCaseFirstLetter from './style/upper_case_first_letter'; function findUnsupportedList(): string[] { return []; @@ -30,6 +32,7 @@ if (unsupportedList.length) { const VersionUpdater = styled.div` > .text { padding-top: 10px; + ${upperCaseFirstLetter} } > .action-box { @@ -62,7 +65,7 @@ if ('serviceWorker' in navigator) { wb.addEventListener('waiting', () => { updateNoticeId = notice.info( -
检测到新版本, 是否马上加载?
+
{t('pwa_update_question')}