Skip to content

Commit

Permalink
fix: set i18n region-neutral fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissium committed Aug 27, 2024
1 parent a66b48d commit 17bf759
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
2 changes: 1 addition & 1 deletion client/src/DrawerContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function DrawerContent() {
variant='body2'
sx={{ display: 'inline-block' }}
>
v1.2.1
v1.2.2
</Typography>
</Box>
<Box>
Expand Down
5 changes: 4 additions & 1 deletion client/src/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
2 changes: 1 addition & 1 deletion server/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 17bf759

Please sign in to comment.