A full-featured download manager.
doc: update translation guide
Dr_rOot47a7464bf954
diff --git a/CONTRIBUTING-CN.md b/CONTRIBUTING-CN.mdindex 3d561f49..eefec4ef 100644--- a/CONTRIBUTING-CN.md+++ b/CONTRIBUTING-CN.md@@ -1,30 +1,32 @@# Motrix 贡献指南## 🌍 翻译指南+首先你要确定一个语言的英文简写作为 **locale**,如 en-US,这个 locale 值请严格参考 [Electron 的 Locales 文档](https://electronjs.org/docs/api/locales)-Motrix 的国际化分三部分:+Motrix 的国际化分两部分:+- Element UI-- 应用菜单-- 主界面+- 菜单和主界面### Element UI+Element UI 的国际化由 [Element 社区](http://element.eleme.io/#/en-US/component/i18n)提供,找到 **locale** 对应的语言包文件「两者 locale 命名可能不一致」,在 `src/shared/locales/all.js` 中引入,如-```++```javascriptimport eleLocaleEn from 'element-ui/lib/locale/lang/en'import eleLocaleZhCN from 'element-ui/lib/locale/lang/zh-CN'```-### 应用菜单-应用菜单的国际化文件按照语言进行目录划分,每个目录里有三大操作系统对应的 JSON 文件:-- darwin.json-- linux.json-- win32.json+### 菜单和主界面++Motrix 使用 i18next 作为翻译支持库,所以你可能需要简单了解一下它的[使用方法](https://www.i18next.com/overview/getting-started)。+配置文件按照语言 (**locale**) 划分目录:`src/shared/locales`,如:`src/shared/locales/en-US` 和 `src/shared/locales/zh-CN`。++目录里面有按业务模块划分的语言文件++菜单模块经过重构之后,国际化已经打散到了以下文件里了,不再需要再复制 `src/main/menus` 里的配置。-### 主界面-主界面和 Element UI 都是用 i18next 作为翻译支持库,所以你可能需要简单了解一下它的[使用方法](https://www.i18next.com/overview/getting-started)。-主界面的配置同样按照语言划分目录:`src/shared/locales`,如:`src/shared/locales/en-US` 和 `src/shared/locales/zh-CN`。-目录里面有按业务模块划分的语言文件:- about.js- app.js- edit.jsdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex b57e76f0..1dff036e 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,30 +1,32 @@# Motrix Contributing Guide## 🌍 Translation Guide+First you need to determine the English abbreviation of a language as **locale**, such as en-US, this locale value should strictly refer to the [electron's documentation](https://electronjs.org/docs/api/locales).-The internationalization of Motrix is divided into three parts:+The internationalization of Motrix is divided into two parts:+- Element UI-- Application Menu-- Main Interface+- Menu & Main Interface### Element UI+The internationalization of Element UI is provided by the [Element community](http://element.eleme.io/#/en-US/component/i18n), then find the language pack file corresponding to **locale** (both locale naming may be inconsistent), which is import in `src/shared/locales/all.js`, such as-```++```javascriptimport eleLocaleEn from 'element-ui/lib/locale/lang/en'import eleLocaleZhCN from 'element-ui/lib/locale/lang/zh-CN'```-### Application Menu-The internationalization files of the application menu are divided into directories according to the **locale**. Each directory has three JSON files corresponding to the OS:-- darwin.json-- linux.json-- win32.json+### Menu & Main Interface++Motrix uses the [i18next](https://www.i18next.com/overview/getting-started) library for internationalization, so you need a quick look at how to use it.+The configuration files are divided by **locale**: `src/shared/locales`, such as `src/shared/locales/en-US` and `src/shared/locales/zh-CN`.++There are language files in the directory according to the business module.++After the menu module is refactored, the internationalization of the menu has been dispersed into the following files, and there is no need to copy the configuration in `src/main/menus`.-### Main Interface-Both the main interface and the Element UI use [i18next](https://www.i18next.com/overview/getting-started) as the translation support library, so you may need to take a brief look at how to use it.-The configuration of the main interface is also divided into directories according to the **locale**: `src/shared/locales`, such as: `src/shared/locales/en-US` and `src/shared/locales/zh-CN`.-There are language files in the directory divided by business modules:- about.js- app.js- edit.js