Skip to content

Commit

Permalink
i18n: update(Russian thanks to @Dzhake)
Browse files Browse the repository at this point in the history
Co-Authored-By: Dzhake <[email protected]>
  • Loading branch information
std-microblock and Dzhake committed Feb 15, 2024
1 parent 25ae05f commit 1df13b1
Show file tree
Hide file tree
Showing 11 changed files with 194 additions and 177 deletions.
4 changes: 3 additions & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ An alternative mod manager for Celeste

[@WEGFan](https://github.com/WEGFan) provides mirroring and community API, Celeste implementation and other related knowledge

@Destro and @Rhuan Brazilian Portuguese translation
@Destro and @Rhuan Brazilian Portuguese translation

[@dzhake](https://github.com/dzhake) Russian translation
Binary file modified resources/dist.rc
Binary file not shown.
4 changes: 2 additions & 2 deletions src/celemod-ui/di18n.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module.exports = {
ignoreComponents: [],
ignoreMethods: [],
primaryLocale: 'zh-CN',
supportedLocales: ['zh-CN', 'en-US', 'pt-BR'
// , 'de-DE', 'fr-FR', 'ru-RU'
supportedLocales: ['zh-CN', 'en-US', 'pt-BR', 'ru-RU'
// , 'de-DE', 'fr-FR',
],
importCode: "import _i18n, { useI18N } from 'src/i18n';",
i18nObject: '_i18n',
Expand Down
6 changes: 4 additions & 2 deletions src/celemod-ui/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
"无内容": "No content.",
"选择其他路径": "Choose another path",
"界面设置": "UI Settings",
"语言": "Language",
"简体中文": "&&",
"Everest": "Everest",
"原版": "Vanilla",
Expand All @@ -172,5 +171,8 @@
"Harold Madeline Skin": "Harold Madeline Skin",
"有趣的姿势": "Interesting pose",
"下载镜像": "Download mirror",
"始终开启": "Always open"
"始终开启": "Always open",
"CelesteNet": "CelesteNet",
"Multiplayer support": "Multiplayer support",
"语言/Language": "Language"
}
6 changes: 4 additions & 2 deletions src/celemod-ui/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
"无内容": "Sem conteúdo.",
"选择其他路径": "Escolha outro diretório",
"界面设置": "Configurações de Interface",
"语言": "Linguagem",
"简体中文": "&&",
"Everest": "Everest",
"原版": "Vanilla",
Expand All @@ -172,5 +171,8 @@
"Harold Madeline Skin": "Skin do Harold",
"有趣的姿势": "Pose interessante",
"下载镜像": "Baixar espelho",
"始终开启": "Sempre aberto"
"始终开启": "Sempre aberto",
"CelesteNet": "CelesteNet",
"Multiplayer support": "Multiplayer support",
"语言/Language": "Linguagem"
}
322 changes: 163 additions & 159 deletions src/celemod-ui/locales/ru-RU.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/celemod-ui/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
"无内容": "无内容",
"选择其他路径": "选择其他路径",
"界面设置": "界面设置",
"语言": "语言",
"简体中文": "简体中文",
"Everest": "Everest",
"原版": "原版",
Expand All @@ -172,5 +171,8 @@
"Harold Madeline Skin": "Harold Madeline Skin",
"有趣的姿势": "有趣的姿势",
"下载镜像": "下载镜像",
"始终开启": "始终开启"
"始终开启": "始终开启",
"CelesteNet": "CelesteNet",
"Multiplayer support": "Multiplayer support",
"语言/Language": "语言/Language"
}
4 changes: 2 additions & 2 deletions src/celemod-ui/src/resources/RecommendModData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const _functionalMods = () => [
'https://celeste.weg.fan/api/v2/download/mods/Miao.CelesteNet.Client',
visible: lang => lang === 'zh-CN'
}, {
name: 'CelesteNet',
description: 'Multiplayer support',
name: _i18n.t('CelesteNet'),
description: _i18n.t('Multiplayer support'),
download_url:
'https://celeste.weg.fan/api/v2/download/mods/CelesteNet.Client',
visible: lang => lang !== 'zh-CN'
Expand Down
3 changes: 2 additions & 1 deletion src/celemod-ui/src/routes/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
box-shadow: 0 0 5px #00000022;
display: inline-block;

html[lang="pt-BR"] &{
html[lang="pt-BR"] &,
html[lang="ru-RU"] &{
width: 150px;

.info {
Expand Down
10 changes: 6 additions & 4 deletions src/celemod-ui/src/routes/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export const Home = () => {
setUseMultiThread(v.target.checked);
}}
/>

{_i18n.t('使用多线程下载')}
</label>
</div>
Expand Down Expand Up @@ -273,7 +274,7 @@ export const Home = () => {
</label>

<div class="languageSelect">
<span>{_i18n.t('语言')}</span>&nbsp;
<span>{_i18n.t('语言/Language')}</span>&nbsp;
<select
onChange={(e: any) => {
i18nCtx.setLang(e.target.value);
Expand All @@ -285,10 +286,11 @@ export const Home = () => {
>
<option value="zh-CN">{_i18n.t('简体中文')}</option>
<option value="en-US">English</option>
<option value="ru-RU">русский</option>
<option value="pt-BR">Brazilian Portuguese</option>
{/* <option value="ru-RU">русский</option>
<option value="de-DE">Deutsch</option>
<option value="fr-FR">Français</option> */}
{/*
<option value="de-DE">Deutsch</option>
<option value="fr-FR">Français</option> */}
</select>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/celemod-ui/src/routes/Manage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
.modList {

.title {
html[lang="pt-BR"] & {
html[lang="pt-BR"] &,
html[lang="ru-RU"] & {
font-size: 16px;
}

Expand Down Expand Up @@ -35,7 +36,8 @@
}

button {
html[lang="pt-BR"] & {
html[lang="pt-BR"] & ,
html[lang="ru-RU"] &{
font-size: 10px !important;
}
}
Expand Down

0 comments on commit 1df13b1

Please sign in to comment.