Skip to content

Commit 2988482

Browse files
authored
feat(i18n): Add Simplified Chinese locale support (#1514)
* feat(i18n): Add Simplified Chinese locale support * fix: filename issue * fix: filename issue again * chore(i18n): Switches Simplified Chinese locale to zh_CN language code
1 parent fa18392 commit 2988482

File tree

7 files changed

+282
-5
lines changed

7 files changed

+282
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![Shadowban Scanner's logo](doc/image/logo.svg)
66

7-
[日本語で読む](README_ja.md) | [한국어로 읽기](README_ko.md) | [以繁體字閱讀](README_zh_tw.md)
7+
[日本語で読む](README_ja.md) | [한국어로 읽기](README_ko.md) | [以繁體字閱讀](README_zh_tw.md) | [以简体中文阅读](README_zh_cn.md)
88

99
A browser extension that detects shadowbans on Twitter.
1010

@@ -28,6 +28,7 @@ The settings cannot be changed in the user script version. If you need detailed
2828
- [日本語](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ja.user.js)
2929
- [한국어](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ko.user.js)
3030
- [繁體中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_TW.user.js)
31+
- [简体中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js)
3132

3233
## Features
3334

README_ja.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![Shadowban Scannerのロゴ](doc/image/logo.svg)
66

7-
[Read in English](README.md) | [한국어로 읽기](README_ko.md) | [以繁體字閱讀](README_zh_tw.md)
7+
[Read in English](README.md) | [한국어로 읽기](README_ko.md) | [以繁體字閱讀](README_zh_tw.md) | [以简体中文阅读](README_zh_cn.md)
88

99
Twitterのシャドウバンを検出する拡張機能です。
1010

@@ -28,6 +28,7 @@ Twitterのシャドウバンを検出する拡張機能です。
2828
- [日本語](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ja.user.js)
2929
- [한국어](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ko.user.js)
3030
- [繁體中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_TW.user.js)
31+
- [简体中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js)
3132

3233
## 機能
3334

README_ko.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![Shadowban Scanner의 로고](doc/image/logo.svg)
66

7-
[Read in English](README.md) | [日本語で読む](README_ja.md) | [以繁體字閱讀](README_zh_tw.md)
7+
[Read in English](README.md) | [日本語で読む](README_ja.md) | [以繁體字閱讀](README_zh_tw.md) | [以简体中文阅读](README_zh_cn.md)
88

99
Twitter의 Shadowban을 감지하는 확장 기능입니다.
1010

@@ -30,6 +30,7 @@ Twitter의 Shadowban을 감지하는 확장 기능입니다.
3030
- [日本語](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ja.user.js)
3131
- [한국어](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ko.user.js)
3232
- [繁體中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_TW.user.js)
33+
- [简体中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js)
3334

3435
## 기능
3536

README_zh_cn.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Shadowban Scanner
2+
3+
[![Node.js CI (build)](https://github.com/Robot-Inventor/shadowban-scanner/actions/workflows/build.yml/badge.svg)](https://github.com/Robot-Inventor/shadowban-scanner/actions/workflows/build.yml) [![Node.js CI (lint)](https://github.com/Robot-Inventor/shadowban-scanner/actions/workflows/lint.yml/badge.svg)](https://github.com/Robot-Inventor/shadowban-scanner/actions/workflows/lint.yml) [![Node.js CI (format)](https://github.com/Robot-Inventor/shadowban-scanner/actions/workflows/format.yml/badge.svg)](https://github.com/Robot-Inventor/shadowban-scanner/actions/workflows/format.yml)
4+
5+
![Shadowban Scanner 的标志](doc/image/logo.svg)
6+
7+
[Read in English](README.md) | [日本語で読む](README_ja.md) | [한국어로 읽기](README_ko.md) | [以繁體字閱讀](README_zh_tw.md)
8+
这是一个用于检测 Twitter Shadowban 的浏览器扩展。
9+
10+
<p align="center">
11+
<a href="https://www.buymeacoffee.com/keita_roboin"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=keita_roboin&button_colour=FFDD00&font_colour=000000&font_family=Arial&outline_colour=000000&coffee_colour=ffffff" /></a>
12+
</p>
13+
14+
## 安装
15+
16+
<p align="center">
17+
<a href="https://chromewebstore.google.com/detail/enlganfikppbjhabhkkilafmkhifadjd"><img src="./doc/image/badge/chrome.svg" height="75px"></a>
18+
<a href="https://microsoftedge.microsoft.com/addons/detail/kfeecmboomhggeeceipnbbdjmhjoccbl"><img src="./doc/image/badge/edge.svg" height="75px"></a>
19+
<a href="https://addons.mozilla.org/firefox/addon/{8fee6fa8-6d95-4b9e-9c51-324c207fabff}/"><img src="./doc/image/badge/firefox.svg" height="75px"></a>
20+
</p>
21+
22+
### 用户脚本
23+
24+
在脚本版本中,无法进行设置变更。如需自定义设置,请使用扩展。
25+
26+
- [English](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/en.user.js)
27+
- [日本語](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ja.user.js)
28+
- [한국어](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ko.user.js)
29+
- [繁体中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_TW.user.js)
30+
- [简体中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js)
31+
32+
## 功能
33+
34+
- 检测账户级别的 Shadowban 和敏感内容标记
35+
- 检查个人资料的媒体(头像或头图)上的敏感内容标记
36+
- 检测账户因法律原因而导致的国家/地区屏蔽情况
37+
- 检测推文级别的敏感内容标记
38+
- 检测推文上的年龄限制
39+
- 在设置为隐藏的推文中增加查看按钮
40+
41+
![账户级别 Shadowban 检测截图](doc/image/screenshot2_zh_CN.png)
42+
43+
![推文级别 Shadowban 检测截图](doc/image/screenshot1_zh_CN.png)
44+
45+
![被隐藏推文截图](doc/image/screenshot3_zh_CN.png)
46+
47+
## 精准度
48+
49+
对于账户级别的 Shadowban 检查,与其他许多工具一样,可能会出现误判。但针对推文级别的敏感内容标记和年龄限制标记,本扩展几乎能够完美地给出正确结果。因此,建议您在使用 Shadowban Scanner 确认账户和推文状态的同时,也使用其他工具辅助检查。
50+
51+
## 检查方法
52+
53+
检查方法和技术细节请参考以下说明:
54+
55+
- [How Shadowban Scanner Works and About Shadowban (English)](./doc/en/about-shadowban.md)
56+
- [Technical Information on Shadowban Scanner (English)](./doc/en/technical-information.md)
57+
58+
## Privacy Policy
59+
60+
<!-- PRIVACY_POLICY_TEXT_START -->
61+
<!-- THIS SECTION IS GENERATED FROM ./src/_locales/zh_CN/messages.json. DO NOT EDIT MANUALLY -->
62+
63+
此扩展原则上会在用户的电脑上处理所有数据,不会将数据发送到外部服务器,此扩展亦不会在未经用户许可的情况下使用登录凭证访问 Twitter/X 的内部 API。对于此扩展没有对应处理的网页,将适用各自的使用条款和隐私政策。
64+
65+
<!-- PRIVACY_POLICY_TEXT_END -->
66+
67+
Note that the user script version retrieves images from [https://abs-0.twimg.com/](https://abs-0.twimg.com/) in order to display emojis.
68+
69+
## License
70+
71+
This extension is released under the MIT License.
72+
73+
However, the badge images of each extension store are not subject to the MIT license, and instead are subject to their own branding guidelines and licenses.
74+
75+
## Contributing
76+
77+
To change the code or improve documentation and translations, see the [Contributing Guide](CONTRIBUTING.md).
78+
79+
## Release Procedure
80+
81+
See [doc/release-procedure.md](doc/release-procedure.md).

README_zh_tw.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
![Shadowban Scanner 的標誌](doc/image/logo.svg)
66

7-
[Read in English](README.md) | [日本語で読む](README_ja.md) | [한국어로 읽기](README_ko.md)
8-
7+
[Read in English](README.md) | [日本語で読む](README_ja.md) | [한국어로 읽기](README_ko.md) | [以简体中文阅读](README_zh_cn.md)
98
這是一個用於檢查 Twitter 的 Shadowban 的擴充功能。
109

1110
<p align="center">
@@ -28,6 +27,7 @@
2827
- [日本語](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ja.user.js)
2928
- [한국어](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/ko.user.js)
3029
- [繁體中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_TW.user.js)
30+
- [简体中文](https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js)
3131

3232
## 功能
3333

src/_locales/zh_CN/messages.json

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
{
2+
"manifest_description": {
3+
"message": "这是一个用于检查 Twitter/X 的 Shadowban 的浏览器扩展。"
4+
},
5+
"accountShadowbanned": {
6+
"message": "此账户可能已被 Shadowban,因此他们的推文可能不会显示在搜索结果中。"
7+
},
8+
"accountShadowbannedAndTweetFlaggedAsSensitive": {
9+
"message": "此账户可能已被 Shadowban,因此他们的推文可能不会显示在搜索结果中。此外,此推文已被标记为敏感内容。"
10+
},
11+
"accountAndTweetShadowbanned": {
12+
"message": "此推文有年龄限制,未满 18 岁或未登录的账户将不会看到它。此外,推文可能不会出现在搜索结果中。"
13+
},
14+
"accountIsBlockedInSomeCountries": {
15+
"message": "此账户在某些国家/地区被屏蔽。"
16+
},
17+
"tweetFlaggedAsSensitive": {
18+
"message": "此推文已被标注为敏感内容,根据查看者的设置,推文可能不会显示在搜索结果中。"
19+
},
20+
"thisUserIsNotShadowbanned": {
21+
"message": "此账户没有被 Shadowban。"
22+
},
23+
"thisUserIsShadowbanned": {
24+
"message": "此账户可能已被 Shadowban,因此他们发布的推文可能不会显示在搜索结果中。"
25+
},
26+
"tweetShadowbanned": {
27+
"message": "此推文有年龄限制,未满 18 岁或未登录的账户将不会看到它。此外,推文可能不会出现在搜索结果中。"
28+
},
29+
"tweetNoProblem": {
30+
"message": "此推文未发现任何问题。"
31+
},
32+
"accountIsNotFlaggedAsSensitive": {
33+
"message": "✅此账户没有被标记为含有敏感内容。"
34+
},
35+
"accountIsShadowbannedOrFlaggedAsSensitive": {
36+
"message": "🚫此账户可能已被 Shadowban 或被标记为含有敏感内容。"
37+
},
38+
"profileDoesNotContainSensitiveMedia": {
39+
"message": "✅此账户的个人资料媒体(头像或头图)没有标记为敏感内容。"
40+
},
41+
"profileContainsSensitiveMedia": {
42+
"message": "🚫此账户的个人资料媒体(头像或头图)已被标记为敏感内容。"
43+
},
44+
"accountIsNotWithheldInCountries": {
45+
"message": "✅此账户没有被任何国家/地区屏蔽(<a href=\"https://help.twitter.com/rules-and-policies/post-withheld-by-country\" target=\"_blank\">详细说明</a>)。"
46+
},
47+
"accountIsWithheldInCountries": {
48+
"message": "🚫此账户被以下国家/地区屏蔽(<a href=\"https://help.twitter.com/rules-and-policies/post-withheld-by-country\" target=\"_blank\">详细说明</a>):$1"
49+
},
50+
"tweetIsNotFlaggedAsSensitive": {
51+
"message": "✅此推文没有标记为敏感内容。"
52+
},
53+
"tweetIsFlaggedAsSensitive": {
54+
"message": "🚫此推文已被标记为敏感内容。"
55+
},
56+
"tweetIsNotAgeRestricted": {
57+
"message": "✅此推文没有年龄限制。"
58+
},
59+
"tweetIsAgeRestricted": {
60+
"message": "🚫此推文有年龄限制。"
61+
},
62+
"tweetIsSearchable": {
63+
"message": "✅此推文会显示在搜索结果中。"
64+
},
65+
"tweetMayNotBeSearchable": {
66+
"message": "⚠️根据查看者的设置,此推文可能不会显示在搜索结果中。"
67+
},
68+
"tweetIsNotSearchable": {
69+
"message": "🚫此推文可能不会显示在搜索结果中。"
70+
},
71+
"falsePositivesAndFalseNegativesOccur": {
72+
"message": "Shadowban Scanner 和其他类似功能的工具一样,可能会产生误判的情况。有关扩展运作方式的详细信息,请参考<a href=\"https://github.com/Robot-Inventor/shadowban-scanner/blob/main/doc/en/about-shadowban.md\" target=\"blank\">这里</a>。"
73+
},
74+
"translatedByAI": {
75+
"message": "",
76+
"description": "This field is used if the translation was done by AI. Otherwise, set this field to an empty string. Example sentence: \"Translated from Japanese to <language name> by AI. Please notify <a href=\\\"https://twitter.com/keita_roboin\\\" target=\\\"_blank\\\">@keita_roboin</a>'s DM or <a href=\\\"https://github.com/Robot-Inventor/shadowban-scanner/\\\" target=\\\"_blank\\\">GitHub repository</a> if there are any unnatural points.\""
77+
},
78+
"showMore": {
79+
"message": "▶显示更多"
80+
},
81+
"tweetTheResults": {
82+
"message": "分享结果"
83+
},
84+
"viewTweet": {
85+
"message": "查看推文"
86+
},
87+
"settingsWhereToDisplayCheckResults": {
88+
"message": "显示检查结果的位置"
89+
},
90+
"settingsAlwaysShowMessagesIfYourAccountShadowbanned": {
91+
"message": "如果你的账号被 shadowban,消息会一直显示。"
92+
},
93+
"settingsShowMessagesInUnproblematicTweets": {
94+
"message": "在没有问题的推文中显示"
95+
},
96+
"settingsShowMessagesInUnproblematicProfiles": {
97+
"message": "在没有问题的账户的个人资料中显示"
98+
},
99+
"settingsEnableForOtherUsersTweets": {
100+
"message": "在其他账户的推文中显示"
101+
},
102+
"settingsEnableForOtherUsersProfiles": {
103+
"message": "在其他账户的个人资料中显示"
104+
},
105+
"settingsOtherSettings": {
106+
"message": "其他设置"
107+
},
108+
"settingsEnableCompactMode": {
109+
"message": "启用精简模式"
110+
},
111+
"settingsAlwaysDetailedView": {
112+
"message": "始终显示详细信息"
113+
},
114+
"settingsShowNotesInMessages": {
115+
"message": "在消息底部显示注释"
116+
},
117+
"settingsShowTweetButton": {
118+
"message": "显示分享按钮"
119+
},
120+
"settingsEnableOnXPro": {
121+
"message": "在 X Pro 上执行"
122+
},
123+
"settingsShowReleaseNotes": {
124+
"message": "更新后显示发行说明"
125+
},
126+
"settingsEnableColorAccessibilityMode": {
127+
"message": "启用色盲模式"
128+
},
129+
"settingsPleaseReload": {
130+
"message": "如果更改过扩展设置,请重新加载 Twitter/X 页面"
131+
},
132+
"settingsPrivacyPolicy": {
133+
"message": "隐私政策"
134+
},
135+
"settingsOpenSourceLicenses": {
136+
"message": "开放源代码许可"
137+
},
138+
"settingsSupportDevelopment": {
139+
"message": "<a href=\"https://github.com/Robot-Inventor/shadowban-scanner/blob/main/doc/en/how-to-support.md\" target=\"_blank\">支持开发</a>"
140+
},
141+
"settingsFollowTheDeveloper": {
142+
"message": "关注开发者"
143+
},
144+
"privacyPolicyPageTitle": {
145+
"message": "隐私政策 - Shadowban Scanner"
146+
},
147+
"privacyPolicy": {
148+
"message": "隐私政策"
149+
},
150+
"privacyPolicyText": {
151+
"message": "此扩展原则上会在用户的电脑上处理所有数据,不会将数据发送到外部服务器,此扩展亦不会在未经用户许可的情况下使用登录凭证访问 Twitter/X 的内部 API。对于此扩展没有对应处理的网页,将适用各自的使用条款和隐私政策。"
152+
},
153+
"initialSetup": {
154+
"message": "初始设置 - Shadowban Scanner"
155+
},
156+
"letsStartWithASimpleInitialSetup": {
157+
"message": "先从简单的初始设置开始吧"
158+
},
159+
"pleaseSelectOneOfThem": {
160+
"message": "请选择其中一个,这个设置之后可以再更改。"
161+
},
162+
"displayForAllTweetsAndAccounts": {
163+
"message": "显示所有推文和账户的检查结果"
164+
},
165+
"displayOnlyForProblematicTweets": {
166+
"message": "仅显示问题推文和问题账户的检查结果"
167+
},
168+
"displayOnlyInYourOwnTweets": {
169+
"message": "仅显示我自己的推文的检查结果"
170+
},
171+
"displayInAllUsersTweets": {
172+
"message": "显示所有账户发布的推文的检查结果"
173+
},
174+
"back": {
175+
"message": "返回"
176+
},
177+
"next": {
178+
"message": "下一步"
179+
},
180+
"initialSetupCompleted": {
181+
"message": "已完成初始设置!是否要打开使用说明?"
182+
},
183+
"open": {
184+
"message": "打开"
185+
},
186+
"exitWithoutOpening": {
187+
"message": "不需要并关闭"
188+
}
189+
}

src/ts/userScript/zh_CN.user.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createUserScript } from "./userScriptBase";
2+
import translation from "../../_locales/zh_CN/messages.json";
3+
4+
createUserScript(translation);

0 commit comments

Comments
 (0)