Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import langEn, { dateTimeFormat as enDateTimeFormat } from './en';
import langFr, { dateTimeFormat as frDateTimeFormat } from './fr';
import langzhCN, { dateTimeFormat as zhCNDateTimeFormat } from './zh-CN';
import { PlatformMessageFormat } from './base/platforms/PlatformMessageFormat';
import { GameSelectionMessageFormat } from './base/pages/GameSelectionMessageFormat';
import { SplashMessageFormat } from './base/pages/SplashMessageFormat';
import { ProfileSelectionMessageFormat } from './base/pages/ProfileSelectionMessageFormat';
import { ManagerMessageFormat } from './base/pages/ManagerMessageFormat';
import {EnumMessageFormat} from "./base/enums/EnumMessageFormat";
import { HelpMessageFormat } from './base/pages/HelpMessageFormat';
import { SettingsMessageFormat } from './base/pages/SettingsMessageFormat';

export default {
'en': langEn,
'fr': langFr,
'zh-CN': langzhCN,
};

export const datetimeFormats = {
[langEn.metadata.locale]: enDateTimeFormat,
[langFr.metadata.locale]: frDateTimeFormat,
[langzhCN.metadata.locale]: zhCNDateTimeFormat,
};

// TODO - Use for language selection screens
Expand All @@ -33,7 +37,7 @@ export type MessageFormat = {
profileSelection: ProfileSelectionMessageFormat,
manager: ManagerMessageFormat,
help: HelpMessageFormat,
// settings: SettingsMessageFormat,
settings: SettingsMessageFormat,
},
platforms: PlatformMessageFormat;
enums: EnumMessageFormat;
Expand Down
32 changes: 32 additions & 0 deletions src/i18n/zh-CN/enums/EnumTranslation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import {EnumMessageFormat} from "../../base/enums/EnumMessageFormat";

export const EnumTranslation: EnumMessageFormat = {
sortNaming: {
CUSTOM: '自定义',
MOD_NAME: '模组名',
AUTHOR: '作者名',
INSTALL_DATE: '安装时间',
},
sortDirection: {
STANDARD: '标准',
REVERSE: '反向',
},
sortLocalDisabledMods: {
NONE: '无',
CUSTOM: '自定义',
FIRST: '最先',
LAST: '最后',
},
sortingStyle: {
DEFAULT: '默认',
LAST_UPDATED: '最后更新',
ALPHABETICAL: '字母顺序',
DOWNLOADS: '下载量',
RATING: '评分',
},
launchType: {
AUTO: '自动',
NATIVE: '原生',
PROTON: 'Proton',
}
}
41 changes: 41 additions & 0 deletions src/i18n/zh-CN/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { DateTimeFormat, MessageFormat } from '../index';
import {GameSelectionTranslation} from "./pages/GameSelectionTranslation";
import {SplashTranslation} from "./pages/SplashTranslation";
import {PlatformTranslation} from "./platforms/PlatformTranslation";
import {ProfileSelectionTranslation} from "./pages/ProfileSelectionTranslation";
import { ManagerTranslation } from './pages/ManagerTranslation';
import {EnumTranslation} from "./enums/EnumTranslation";
import {HelpTranslation} from './pages/HelpTranslation';
import {SettingsTranslation} from "./pages/SettingsTranslation";

const message: MessageFormat = {
metadata: {
name: '简体中文',
locale: 'zh-CN'
},
translations: {
pages: {
gameSelection: GameSelectionTranslation,
splash: SplashTranslation,
profileSelection: ProfileSelectionTranslation,
manager: ManagerTranslation,
help: HelpTranslation,
settings: SettingsTranslation,
},
platforms: PlatformTranslation,
enums: EnumTranslation,
}
};

export const dateTimeFormat: DateTimeFormat = {
short: {
year: 'numeric', month: 'short', day: 'numeric'
},
long: {
year: 'numeric', month: 'long', day: 'numeric',
weekday: 'short', hour: 'numeric', minute: 'numeric'
},
}

// Exported separately to enforce validation on exported type
export default message;
39 changes: 39 additions & 0 deletions src/i18n/zh-CN/pages/GameSelectionTranslation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import {GameSelectionMessageFormat} from "../../base/pages/GameSelectionMessageFormat";

export const GameSelectionTranslation: GameSelectionMessageFormat = {
platformModal: {
header: "要管理哪个平台的游戏?",
selectAction: "选择平台",
},
pageTitle: {
title: {
game: '游戏选择',
server: '服务器选择',
},
subtitle: {
game: '你想要管理哪个游戏的模组?',
server: '你想要管理哪个服务器的模组?',
}
},
migrationNotice: {
requiresUpdate: '管理器已更新,需要执行后台任务。',
actionsDisabled: '在任务结束前,将禁用选择游戏。',
},
tabs: {
game: '游戏',
server: '服务器'
},
actions: {
select: {
game: '选择游戏',
server: '选择服务器',
},
setAsDefault: '设为默认',
},
filter: {
placeholder: {
game: '搜索游戏',
server: '搜索服务器',
}
}
}
86 changes: 86 additions & 0 deletions src/i18n/zh-CN/pages/HelpTranslation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import { HelpMessageFormat } from '../../base/pages/HelpMessageFormat';

export const HelpTranslation: HelpMessageFormat = {
hero: {
title: '帮助',
subtitle: '常见问题及解决方案'
},
tabs: {
general: '常规',
gameWontStart: '游戏无法启动',
modsNotShowing: '模组未启用',
updating: '更新',
},
general: {
gettingStarted: {
title: '开始安装模组',
whereToFindMods: `
前往 "{''}@:translations.pages.manager.navigation.modsActions.online{''}" 页面, 找到您想要的模组下载。
管理器会同时下载依赖项,节省您的时间。
`,
onceInstalled: '安装完所需的模组后,只需点击左上角的 {startModdedAction} 即可启动',
},
slowGame: {
title: '使用模组时游戏运行缓慢/卡顿?',
likelyCause: `
这可能是某个模组出现问题导致。
请尝试禁用一些的模组后,检查问题是否仍旧存在。
`,
issuePersisting: `
如果问题依旧存在。
则继续尝试禁用剩余模组。
`,
ifStutters: '针对卡顿问题,或许有优化模组能改善这种情况。',
},
dedicatedServers: {
title: '专用服务器',
content: `
专用服务器虽无法通过管理器直接支持,但可通过将配置文件夹内容复制到专用服务器文件夹中实现替代方案。
`,
},
launchingExternally: {
title: '从模组管理器外部启动游戏',
howTo: '通过 Steam 启动游戏时,您的游戏将会是没有模组的原版状态。',
whereToPlace: '您需要将相应的启动参数配置在您平台的相关启动参数设置中。',
forSteam: '对于Steam平台,该选项位于游戏属性中。',
yourCurrentArgument: '您当前的启动参数是:',
loaderNotInstalled: '这些参数将在安装模组加载器后可用。',
copyArguments: '复制启动参数',
},
},
gameWontStart: {
errorModal: {
title: '当我尝试启动游戏时,出现红色方框。',
solution: '红色框的底部通常会提供一个建议,这可能有助于解决问题。',
},
redirectedToStorePage: {
title: '我跳转到了游戏Steam商店页面',
solution: '游玩 {appName} 时,你必须有正版的完整游戏。你可以通过商店购买。',
},
consoleCloses: {
title: '一个文本窗口出现并立即关闭',
tryRunning: '尝试在设置界面 "重置 {gameName} 安装"。', // TODO - Reference translation via Settings screen
ifPersists: '若问题仍然存在,请强制退出Steam,并在关闭 Steam 的情况下启动模组。',
}
},
modsNotShowing: {
potentialSolutions: {
title: '潜在解决方案',
instructToWiki: '最常见的问题可通过严格遵循维基百科上列出的说明来解决。',
goToWiki: '前往维基百科',
}
},
updating: {
autoUpdates: {
title: '自动更新',
whenDoesItUpdate: '若有可用更新,管理器将在关闭时自动更新。',
downloadedInBackground: '更新将在后台进行下载。',
promptToRunOldInstaller: '您可能会被要求以管理员身份运行 "{oldInstaller}"。这是更新程序。',
ifProblemOccurs: '如果更新过程中出现问题,请下载并运行最新的安装程序。',
},
ignoreUpdates: {
title: '我不想要更新',
content: 'GitHub 上有一个便携版,它不会自动更新。不过当有更新可用时,系统会提示你。'
}
}
}
Loading