-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
StageGuard
committed
Dec 22, 2020
1 parent
944420d
commit 678a97b
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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! |