From 678a97bb442e65e3265e826e24aa3f325c1159fb Mon Sep 17 00:00:00 2001
From: StageGuard <1355416608@qq.com>
Date: Tue, 22 Dec 2020 19:07:54 +0800
Subject: [PATCH] Add contribute-translation.md
---
README.md | 14 +++++++++++++-
contribute-translation.md | 30 ++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 1 deletion(-)
create mode 100644 contribute-translation.md
diff --git a/README.md b/README.md
index 4097794..0c60024 100644
--- a/README.md
+++ b/README.md
@@ -140,7 +140,9 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
# 贡献
-欢迎任何人贡献本项目,包括但不限于Pull Request,Issue,New feature request
+欢迎任何人贡献本项目,包括但不限于Pull Request,Issue,New feature request 或者 贡献翻译。
+
+
## 贡献者名单(按照首次贡献时间排序)
@@ -171,6 +173,16 @@ Twitter[Phoebe@huunhut1217](https://mobile.twitter.com/huunhut1217)
酷安[@头条乀](http://www.coolapk.com/u/1192320)
+## 翻译
+
+SkyAutoplayerScript 在版本 21 已支持多语言并可以在线获取语言列表,你可以查看 [contribute-translation.md](contribute-translation.md) (English) 来了解如何贡献翻译。
+
+SkyAutoplayerScript version 21 has supported multi-language and can also fetch online language list, follow [contribute-translation.md](contribute-translation.md) (English) guide to contribute translation.
+
+### 贡献者:
+
+无
+
# 图标来源
[Iconfont-阿里巴巴矢量图标库](https://www.iconfont.cn/)
diff --git a/contribute-translation.md b/contribute-translation.md
new file mode 100644
index 0000000..95490db
--- /dev/null
+++ b/contribute-translation.md
@@ -0,0 +1,30 @@
+# Help to translate SkyAutoplayerScript
+
+Follow [Issue#4](https://github.com/StageGuard/SkyAutoPlayerScript/issues/4) request, SkyAutoplayerScript has updated version 21, which supported multi-language.
+
+It can also fetch online language list [source/language_list.json](https://github.com/StageGuard/SkyAutoPlayerScript/blob/master/source/language_list.json). So if you want to translate SkyAutoplayerScript into another language, please follow the steps below.
+
+- Clone this repository.
+- Create a new file in **resources/language_pack/xx_XX.json**, the file name must be standard language code (e.g. zh_CN or en_US).
+- You can refer to **resources/language_pack/en_US.json** to translate.
+- Modify **source/language_list.json**:
+
+```js
+{
+ "list": [{
+ "code": "", //your language code
+ "name": "" //language name
+ }, {
+ "code": "zh_CN",
+ "name": "简体中文"
+ }, {
+ //...
+ }]
+}
+```
+
+- Create a new pull request.
+
+After merging, your language will be shown in Setting-Language list.
+
+I would appreciate it if you could contribute translation!
\ No newline at end of file