From 17bf75910fda6bfd0628dd2c22a12dd99c87b4dd Mon Sep 17 00:00:00 2001 From: Yi Xing Date: Tue, 27 Aug 2024 17:48:22 +0800 Subject: [PATCH] fix: set i18n region-neutral fallbacks --- Dockerfile | 2 +- client/src/DrawerContent.js | 2 +- client/src/l10n.js | 5 ++++- server/updater.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 458b6fc..7b23082 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN yarn build # Stage 2: Production Environment FROM alpine:3.19 -ARG VERSION="1.2.1" +ARG VERSION="1.2.2" ARG ENABLE_FULL_TEXT_SEARCH="" ARG ENABLE_MORPHOLOGY_ANALYSIS="" ARG ENABLE_CHINESE_CONVERSION="" diff --git a/client/src/DrawerContent.js b/client/src/DrawerContent.js index 8643e20..3eaa743 100644 --- a/client/src/DrawerContent.js +++ b/client/src/DrawerContent.js @@ -115,7 +115,7 @@ export default function DrawerContent() { variant='body2' sx={{ display: 'inline-block' }} > - v1.2.1 + v1.2.2 diff --git a/client/src/l10n.js b/client/src/l10n.js index 9c5e3a7..17299a1 100644 --- a/client/src/l10n.js +++ b/client/src/l10n.js @@ -6,10 +6,13 @@ import ruRU from './translations/ru-RU.json'; import zhCN from './translations/zh-CN.json'; export const localisedStrings = new LocalizedStrings({ + 'en': enGB, 'en-GB': enGB, 'en-US': enUS, + 'ru': ruRU, 'ru-RU': ruRU, - 'zh-CN': zhCN + 'zh-CN': zhCN, + 'zh-Hans': zhCN }); export const interfaceLangIsRTL = RTL_LANGS.includes(localisedStrings.getLanguage()); diff --git a/server/updater.py b/server/updater.py index 73c268a..2f7456e 100644 --- a/server/updater.py +++ b/server/updater.py @@ -15,7 +15,7 @@ project_directory = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) windows_save_path = os.path.join(os.path.dirname(project_directory), 'SilverDict-windows.zip') unix_save_path = os.path.join(project_directory, 'SilverDict.zip') -current_version = 'v1.2.1' +current_version = 'v1.2.2' def _get_latest_version_and_release_note() -> tuple[str, str]: