forked from maboloshi/github-chinese
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlocals.js
10247 lines (8985 loc) · 707 KB
/
locals.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*******************************************************************************
locals.js - 搭配使用者指令碼外掛`GitHub 中文化外掛`的頁面匹配規則, 翻譯忽略規則,
詞條庫檔案
Copyright (C) 2016-2021 樓教主 (https://github.com/52cik)
Copyright (C) 2021-當前 沙漠之子 (https://github.com/maboloshi)
Copyright (C) 2022-當前 Orstudio (https://orstudio.tw/)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Home: https://github.com/cracky5322/Github-zh_TW
*/
var I18N = {};
I18N.conf = {
/**
* 要翻譯的頁面正則(不含倉庫頁)
*
* 2021-10-07 11:53:34
* GitHub 網站更新 調整 Class 過濾規則
* 且過濾 Class 並不是總是生效,增加 PathName 規則補充
*/
rePageClass: /\b(page-(profile|account|new-repo|create-org)|session-authentication)\b/,
/**
* 匹配 pathname 頁面的正則
*
* 註冊頁面 /signup
* 登入二步驗證 /login/oauth
* 登入頁面 /login
* 密碼重置 /password_reset
* 組織頁面 /orgs
* 探索頁面 /explore
* 訂閱頁面 /notifications/subscriptions
* 通知頁面 /notifications
* 關注頁面 /watching
* 星標頁面 /stars
* 議題頁面 /issues
* 拉取請求 /pulls
* 搜尋頁面 /search
* 趨勢頁面 /trending
* 展示頁面 /showcases
* 匯入倉庫 /new/import
* ...
*/
rePagePath: /\/($|signup|login\/oauth|login|sessions?|password_reset|orgs|explore|notifications\/subscriptions|notifications|watching|stars|issues|pulls|search|trending|showcases|new\/(import|project)|import|settings\/(apps\/authorizations|apps|tokens|developers|applications\/new|security-log)|settings|installations\/new|marketplace|apps|account\/organizations\/new|projects|account\/billing\/history)/,
// 倉庫路徑
rePagePathRepo: /\/(settings|search|projects\/new)/,
// 組織路徑
rePagePathOrg: /\/(dashboard|settings\/(apps\/new|applications\/new)|settings|billing_managers\/new|repositories\/new|topics|billing\/history|domain\/new)/,
/**
* 忽略區域的 class 正則
*
* 程式碼編輯器 內容 程式碼高亮 CodeMirror
* 程式碼高亮 blob-code
* 倉庫名和使用者名稱 repo-and-owner (已知出現在:應用安裝授權頁和設定頁 選定倉庫)
* 檔案,目錄位置欄 |js-path-segment|final-path
* 檔案列表 files js-navigation-container js-active-navigation-container
* 評論內容等 js-comment-body
* 評論編輯區域 comment-form-textarea
* 檔案搜尋模式 js-tree-finder-virtual-filter
* 倉庫檔案列表 js-navigation-open Link--primary
* 快捷鍵 按鍵 js-modifier-key
* 洞察-->流量-->熱門內容列表 capped-list-label
*/
reIgnoreClass: /(CodeMirror|blob-code|highlight-.*|repo-and-owner|js-path-segment|final-path|files js-navigation-container|js-comment-body|comment-form-textarea|markdown-title|js-tree-finder-virtual-filter|js-navigation-open Link--primary|js-modifier-key|capped-list-label|blob-code blob-code-inner js-file-line|pl-token|Link--primary no-underline text-bold)/,
/**
* 忽略區域的 itemprop 屬性正則
* name 列表頁 倉庫名
*/
reIgnoreItemprop: /(name|description)/,
/**
* 忽略區域的 特定元素id 正則
*/
reIgnoreId: /(readme)/,
/**
* 忽略區域的 標籤 正則
* /i 規則不區分大小寫
*/
reIgnoreTag: /(CODE|^SCRIPT$|^STYLE$|LINK|IMG|MARKED-TEXT|^PRE$|KBD)/,
// marked-text --> 檔案搜尋模式/<user-name>/<repo-name>/find/<branch> 檔案列表條目
// ^script$ --> 避免勿過濾 notifications-list-subscription-form
// ^pre$ --> 避免勿過濾
};
I18N.zh = {
"selector": [ // 元素篩選器規則
["#global-nav > a:nth-child(2)", "拉取請求"], // 頂部條 拉取請求
["#type-options > summary > span:nth-child(1)", "型別"], // 個人主頁 --> 倉庫標籤頁-->型別篩選器 Type
["#review-changes-modal > summary > span.js-review-changes", "審查更改"], // 拉取請求 更改的檔案
["#review-changes-modal > summary > span.hide-sm > span.js-review-changes", "審查更改"], // 拉取請求 更改的檔案
["btn-primary btn float-none float-md-right", "更新評論"],
],
"title": { // 標題翻譯
"static": { // 靜態翻譯
"Sign in to GitHub · GitHub": "登入 GitHub · GitHub",
"Join GitHub · GitHub": "加入 GitHub · GitHub",
"Forgot your password? · GitHub": "忘記您的密碼了嗎?· GitHub",
"Forgot your password?": "忘記您的密碼了嗎?",
"GitHub · Where software is built": "GitHub - 軟體構建的地方",
"Create a New Repository": "建立新倉庫",
"Import a Repository": "匯入倉庫",
"New Project": "建立專案",
"Your Repositories": "我的倉庫",
"Your Projects": "我的專案",
"Your Packages": "我的軟體包",
"Your Stars": "我的星標頁面",
"Your Profile": "個人資料",
"Account settings": "帳戶設定",
"Appearance": "外觀",
"Accessibility": "無障礙",
"Notification settingss": "通知設定",
"Billing": "賬單",
"Email settings": "郵箱設定",
"Account security": "帳戶安全",
"SSH and GPG keys": "SSH 和 GPG 公鑰",
"Organizations": "組織",
"Blocked users": "拉黑使用者",
"Temporary interaction limits": "臨時互動限制",
"Code review limits": "程式碼審查限制",
"Repositorys": "倉庫",
"Deleted Packages": "刪除的軟體包",
"Pages": "GitHub 頁面",
"Saved replies": "快捷回覆",
"Security & analysis": "安全與分析",
"Installed GitHub Apps": "已安裝的 GitHub 應用",
"Scheduled reminders": "定時提醒",
"Security log": "安全日誌",
"Sponsorship Log": "贊助日誌",
"GitHub Apps": "GitHub 應用",
"Developer applications": "開發者應用",
"Personal Access Tokens": "個人訪問令牌",
"Register new GitHub App": "註冊新 GitHub 應用",
"New OAuth Application": "新 OAuth 應用",
"Create a new Gist": "建立新程式碼片段",
"Discover gists": "探索程式碼片段",
"Enable two-factor authentication": "啟用雙重身份驗證",
"Manage two-factor authentication": "管理雙重身份驗證",
"Options": "倉庫 · 選項",
"Confirm access": "授權訪問",
"General": "通常",
"Manage access": "訪問管理",
"Branches": "分支",
"Tags": "標籤",
"Webhooks": "Web 鉤子",
"Environments": "環境",
"Code security & analysis": "程式碼安全性與分析",
"Deploy keys": "部署金鑰",
"Add deploy key": "新增部署金鑰",
"Actions secrets": "操作機密",
"Dependabot secrets": "Dependabot 機密",
"Configure email notifications": "配置郵件通知",
"Community Standards": "社群準則",
"General Organization Settings": "常規組織設定",
"Member privileges": "成員許可權",
"Teams": "團隊",
"Repository defaults": "倉庫預設值",
"Runners": "執行器",
"Runner Groups": "執行器組",
"Packages": "軟體包",
"Security": "安全",
"Verified & approved domains": "經驗證和批准的域名",
"Third-party application access policy": "第三方應用訪問策略",
"Audit log": "審計日誌",
"Deleted Repositories": "已刪除的倉庫",
"GitHub Publisher Verification": "GitHub 釋出者驗證",
"Notifications": "通知",
"Confirm your account recovery settings": "確認您的帳戶恢復設定",
"Your stars": "我的星標",
"Your starred repositories": "我的星標倉庫",
"Your starred topics": "我的星標主題",
"Pull Requests": "拉取請求",
},
"regexp": [ // 正則翻譯
[/Repositories/, "倉庫"],
[/Starred/, "星標頁面"],
[/starred repositories/, "星標倉庫"],
[/starred topics/, "星標主題"],
[/starred/, "星標"],
[/Commits/, "提交"],
[/New Issue/, "新建議題"],
[/Issues/, "議題"],
[/Pull requests/, "拉取請求"],
[/Actions/, "操作"],
[/Projects/, "專案"],
[/Packages/, "軟體包"],
[/Security Overview/, "安全概述"],
[/Security Policy/, "安全政策"],
[/Security Advisories/, "安全公告"],
[/Dependabot alerts/, "Dependabot 警報"],
[/Pulse/, "統計"],
[/Contributors to/, "貢獻者 ·"],
[/Community/, "社群"],
[/Traffic/, "流量"],
[/Commit Activity/, "提交活動"],
[/Code frequency/, "程式碼頻率"],
[/Dependencies/, "依賴關係"],
[/Network Dependents/, "網路依賴者"],
[/Network Graph/, "網路圖"],
[/Revisions/,"修訂"],
[/Stargazers/, "追星者"],
[/Forks/, "復刻"],
[/Draft Advisory/, "安全公告草案"],
[/Code scanning alerts/, "程式碼掃描警報"],
[/Repository topics/, "倉庫主題"],
[/Scheduled reminders/, "定時提醒"],
[/Sponsorship Log/, "贊助日誌"],
[/OAuth applications/, "OAuth 應用"],
[/People · Pending Collaborators/, "成員 · 待定協作者"],
[/People/, "成員"],
[/Outside collaborators/, "外部協作者"],
[/Discussions/, "討論"],
["_regexp_end", "end"]
],
},
"pubilc": { // 公共區域翻譯
"static": { // 靜態翻譯
//
"No server is currently available to service your request.": "當前伺服器無法為您的請求提供服務。",
"This page is taking too long to load.": "此頁面載入時間過長。",
"Sorry about that. Please try refreshing and contact us if the problem persists.": "對此我們很抱歉。請嘗試重新整理,如果問題仍然存在,請聯絡我們。",
"Contact Support": "聯絡 GitHub Support",
"GitHub Status": "GitHub 狀態",
// 頂部欄 (未登入)
"Why GitHub?": "為何選擇 GitHub?",
"Team": "團隊",
"Enterprise": "企業",
// "Pricing": "價格",
"Search": "搜尋",
"Sign in": "登入",
"Sign up": "註冊",
// 搜尋欄
"Search or jump to…": "搜尋或跳轉到…",
"In this repository": "當前倉庫",
"In this organization": "當前組織",
"In this user": "當前使用者",
"All GitHub": "整個 GitHub",
"Jump to": "跳轉到",
// 頂部欄 & 小屏左上角下拉欄 (已登入)
"Dashboard": "儀表板",
//"Pull requests": "拉取請求" // 使用 Selector 規則翻譯
"Issues": "議題",
"Marketplace": "應用商城",
"Explore": "探索",
"Codespaces": "程式碼空間",
"Sponsors": "贊助",
"Overview": "概況",
"Repositories": "倉庫",
"Projects": "專案",
"Packages": "軟體包",
"Sponsoring": "贊助",
// 右上角通知按鈕提示
"You have no unread notifications": "您沒有未讀通知",
"You have unread notifications": "您有未讀通知",
// 右上角新建按鈕下拉選單
"New repository": "新建倉庫",
"Import repository": "匯入倉庫",
"New gist": "新建程式碼片段",
"New organization": "新建組織",
"New project": "新建專案",
// 右上角個人圖示下拉選單
"Signed in as": "登入身份為",
"Set status": "狀態設定",
"Your profile": "我的個人資料",
"Your sponsorships": "我的捐助者",
"Your repositories": "我的倉庫",
"Your codespaces": "我的程式碼空間",
"Your organizations": "我的組織",
"Your enterprises": "我的企業",
"Your projects": "我的專案",
"Your discussions": "我的討論",
"Your stars": "我的標星頁面",
"Your gists": "我的程式碼片段",
"Upgrade": "升級",
"Feature preview": "功能預覽",
// 對話方塊
"Enable": "啟用",
"Disable": "禁用",
"Help": "幫助",
"Settings": "設定",
"Sign out": "退出",
"Stars": "星標",
"Prev": "上一頁",
"Previous": "上一頁",
"Next": "下一頁",
// 狀態設定對話方塊
// 出現位置: 個人資料頁, Gist 個人主頁, 倉庫頁右上角個人圖示下拉選單
"Edit status": "編輯狀態",
"What's happening?": "發生了什麼?",
"Busy": "繁忙中",
"I may be slow to respond.": "我的反應可能比較慢。",
"When others mention you, assign you, or request your review, GitHub will let them know that you have limited availability.": "當其他人提及您、指派您或請求您進行評論時,GitHub 會告知他們您的很忙。",
"Clear status": "清除狀態",
"Never": "永不",
"Visible to": "可見",
"Everyone": "所有人",
"Your status will be visible to everyone": "所有人都可以看到您的狀態",
// [/Only members of ([^ ]+) will be able to see your status./, "只有 $1 的成員才能看到您的狀態。"],
"Keep this status until you clear your status or edit your status.": "保持此狀態直到您清除或編輯您的狀態。",
"in 30 minutes": "30 分鐘",
"in 1 hour": "1 小時",
"in 4 hours": "4 小時",
"today": "今天",
"this week": "本週",
"Filter emoji": "過濾表情符號",
// 底部條
"Terms": "服務條款",
"Privacy": "隱私",
"Security": "安全",
"Status": "狀態",
"Docs": "文件",
"Contact GitHub": "聯絡 GitHub",
"Pricing": "價格",
"Training": "培訓",
"Shop": "商店",
"Blog": "部落格",
"About": "關於",
// 評論編輯器翻譯
"Write": "撰寫",
"Preview": "預覽",
"There is no content to preview.": "沒有內容可供預覽。",
"This file is empty.": "這是一個空檔案。",
"Leave a comment": "發表評論",
"Write a reply": "發表回覆", // 具體討論頁
"Write a comment": "發表回覆", // 具體討論頁
"Suggest an answer": "建議一個答案", // 具體討論頁
"Ask a question, start a conversation, or make an announcement": "提出問題、開始討論或釋出公告", // 新建討論
"Nothing to preview": "沒有什麼可預覽",
"This repository has been archived.": "此倉庫已存檔。", // 已存檔倉庫 某個提交的評論框
// 取消按鈕 提醒資訊
"Are you sure you want to discard your unsaved changes?": "您確定要放棄未儲存的更改嗎?",
"Add a suggestion, <Ctrl+g>": "新增建議,<Ctrl+g>", // 拉取請求 程式碼審查 回覆對話方塊
"Add heading text": "新增標題文字",
"Add bold text, <Ctrl+b>": "新增粗體文字 <Ctrl+b>",
"Add italic text, <Ctrl+i>": "新增斜體文字 <Ctrl+i>",
"Add a quote, <Ctrl+Shift+.>": "新增引用 <Ctrl+Shift+.>",
"Add code, <Ctrl+e>": "新增程式碼 <Ctrl+e>",
"Add a link, <Ctrl+k>": "新增連結 <Ctrl+k>",
"Add a bulleted list, <Ctrl+Shift+8>": "新增無序列表 <Ctrl+Shift+8>",
"Add a numbered list, <Ctrl+Shift+7>": "新增有序列表 <Ctrl+Shift+7>",
"Add a task list, <Ctrl+Shift+l>": "新增任務列表 <Ctrl+Shift+l>",
"Directly mention a user or team": "直接提及使用者或團隊",
"Attach an image or video": "附加圖片或影片", // 小屏
"Reference an issue, pull request or discussion": "引用議題,拉取請求或討論",
"Reference an issue, pull request, or discussion": "引用議題,拉取請求或討論",
"Reference an issue or pull request": "引用議題或拉取請求",
"Add saved reply": "新增快捷回覆",
"Select a reply": "選擇回覆",
"Filter replies…": "篩選回覆",
"Default replies": "預設快捷回覆",
"Duplicate issue": "重複議題",
// "Duplicate of #": "重複 #",
"Duplicate pull request": "重複拉取請求",
// "Duplicate of #": "重複 #",
"Create a new saved reply…": "建立新快捷回覆…",
// 小屏 插入連結 對話方塊
"Insert Link": "插入連結",
"Link Text": "連結文字",
"Add": "新增",
"Attach files by dragging & dropping, selecting or pasting them.": "透過拖放,選擇或貼上來附加檔案。",
"Attach files by selecting or pasting them.": "透過選擇或貼上來附加檔案。",
"Styling with Markdown is supported": "支援 Markdown 功能哦。",
"Uploading your files…": "正在上傳您的檔案…",
"Close issue": "關閉議題", // issue頁 評論框
"Close as completed": "完成後關閉",
"Done, closed, fixed, resolved": "已完成、已關閉、已修復、已解決",
"Close as not planned": "非計劃中關閉",
"Won't fix, can't repro, duplicate, stale": "不會修復,無法重現,重複,陳舊",
"Close with comment": "評論並關閉議題", // issue頁 評論框
"Close pull request": "關閉拉取請求", // pull頁 評論框
"Comment": "評論",
"Submit new issue": "提交新議題",
"Comment on this commit": "評論",
"Close and comment": "提交併關閉",
"Reopen and comment": "提交併重新開啟",
"Reopen issue": "重新開啟議題", // 具體議題
"Reopen pull request": "重新開啟拉取請求", //具體拉取請求
"Add single comment": "評論", // 具體提交頁 進行某條程式碼評論
"Reply": "回覆", // 具體討論頁
"Answer": "答覆", // 具體討論頁
"Start discussion": "開始討論", // 新建討論
"Update": "更新", // 新建討論
"discussion": "討論", // 新建討論
"discussions": "討論", // 新建討論
// 全域性快捷鍵對話方塊 - 快捷鍵 ? 開啟
"Keyboard shortcuts": "鍵盤快捷鍵",
"Site-wide shortcuts": "全站快捷鍵",
"Open command palette": "開啟命令面板",
"Open command palette in command mode": "在命令模式下開啟命令面板",
"Focus search bar": "聚焦搜尋欄",
"Go to notifications": "跳轉到通知",
"Go to dashboard": "跳轉到儀表板",
"Bring up this help dialog": "彈出這個幫助對話方塊",
"Move selection down": "向下移動選擇",
"Move selection up": "向上移動選擇",
"Toggle selection": "切換選擇",
"Open selection": "開啟選擇",
"View all keyboard shortcuts": "檢視所有鍵盤快捷鍵",
// 命令面板 - ctrl k 或 ctrl alt k 開啟
// Tip
"Go to your accessibility settings to change your keyboard shortcuts": "跳轉到您的無障礙設定,以更改您的鍵盤快捷鍵",
"to search discussions": "搜尋討論", // 鍵入 #
"to search issues": "搜尋議題", // 鍵入 #
"to search pull requests": "搜尋拉取請求", // 鍵入 #
"to search projects": "搜尋專案", // 鍵入 !
"to search people and organizations": "搜尋成員和組織", // 鍵入 @
"to activate command mode": "啟用命令模式", // 鍵入 >
"Type is:issue to filter to issues": "鍵入 is:issue 以篩選議題",
"Type is:pr to filter to pull requests": "鍵入 is:pr 以篩選拉取請求",
"Type is:open to filter to open content": "鍵入 is:open 以篩選開啟的內容",
"Type author:@me to search your content": "鍵入 author:@me 以篩選您的內容",
"Type": "請鍵入",
"for help and tips": "尋求幫助和提示", // 鍵入 ?
"Search or jump to...": "搜尋或跳轉到…",
"Clear": "清除",
// "for issues and pull requests,": "議題和拉取請求,",
// "for issues, pull requests, and projects,": "議題、拉取請求和專案,",
// "for files, and": "檔案,",
// "for commands, and": "命令,",
// "for commands": "命令,",
// "for help": "幫助",
"Pages": "GitHub Page",
"Notifications": "通知",
"Discussions": "討論",
"Actions": "操作",
"Insights": "洞察",
"Organizations": "組織",
"Users": "使用者",
"to jump to": "去跳轉",
"to search": "去搜索",
"Top result": "最佳結果",
"No results matched your search": "沒有與您的搜尋相符的結果",
// [/in ([\w]+/[\w]+)/, "在 $1"],
// # 模式
"Search issues and pull requests": "搜尋議題和拉取請求",
"Search issues, pull requests, discussions, and projects": "搜尋議題、拉取請求、討論和專案",
"Issues, pull requests, and discussions": "議題、拉取請求和討論",
// ! 模式
"Search projects": "搜尋專案",
// @ 模式
"Search or jump to a repository": "搜尋或跳轉到倉庫",
"Search or jump to a user, organization, or repository": "搜尋或跳轉到使用者、組織或倉庫",
// / 檔案模式
"Search files": "搜尋檔案",
"Files": "檔案",
// > 命令模式
"Run a command": "執行命令",
"Run command": "執行命令",
// "Commands": "命令",
"Global Commands": "全域性命令",
"New issue": "新建議題",
"New file": "新建檔案",
"Switch theme to default dark": "切換主題為 暗 - 預設",
"Switch theme to dark dimmed": "切換主題為 昏暗",
"Switch theme to default light": "切換主題為 亮 - 預設",
"Switch theme to dark high contrast": "切換主題為 暗 - 高對比",
"Switch theme settings to sync with system": "切換主題為 與系統同步",
// ? 模式
"Modes": "模式",
"Search for": "搜尋",
"across all of GitHub": "在整個 GitHub中",
"issues, pull requests, discussions,": "議題、拉取請求、討論",
"organizations, repositories,": "組織、倉庫",
"projects": "專案",
"files": "檔案",
"issues": "議題",
"pull requests": "拉取請求",
"organizations": "組織",
"repositories": "倉庫",
"users": "使用者",
"Activate": "啟用",
"command mode": "命令模式",
"Use filters in issues, pull requests, discussions, and projects": "在議題題、拉取請求、討論和專案中使用過濾器",
"Search your issues, pull requests, and discussions": "搜尋您的議題、拉取請求和討論",
"Filter to pull requests": "篩選拉取請求",
"Filter to issues": "篩選議題",
"Filter to discussions": "篩選討論",
"Filter to projects": "篩選專案",
"Filter to open issues, pull requests, and discussions": "篩選開啟的議題、拉取請求和討論",
// 公共詞 高頻詞
"Followers": "關注者",
"Follow": "關注",
"Unfollow": "取消關注",
"Star": "星標",
// "Unstar": "已加星標",
"Starred": "已加星標",
"Fork": "復刻",
"Save": "儲存",
"Updating": "更新中",
"Delete": "刪除",
"Cancel": "取消",
"Edit": "編輯",
"Added on": "添加於",
"Loading...": "載入中...",
"Copied!": "複製成功!",
"Copy to clipboard": "複製到剪下板",
"and": "和",
"or": "或",
"to": "到",
"by": "由",
"on": "於",
"Learn more": "瞭解更多",
"Learn More": "瞭解更多",
"Learn more.": "瞭解更多。",
",": ",",
".": "。",
// 名詞
"Code": "程式碼",
"Pull requests": "拉取請求",
"Collaborators": "協作者",
"collaborators": "協作者",
// 相對時間
"just now": "剛剛",
"now": "當前",
"yesterday": "昨天",
"last month": "上個月",
// 狀態詞
"Verified": "已驗證",
"Partially verified": "部分驗證",
"Unverified": "未驗證",
// 郵箱驗證提示
"Please verify your email address to access all of GitHub's features.": "請驗證您的電子郵箱地址以便開啟所有 GitHub 功能。",
"Configure email settings": "修改電子郵箱設定",
"Your email was verified.": "您的電子郵箱地址驗證成功!",
// 日曆
"Jan": "1月",
"Feb": "2月",
"Mar": "3月",
"Apr": "4月",
"May": "5月",
"Jun": "6月",
"Jul": "7月",
"Aug": "8月",
"Sep": "9月",
"Oct": "10月",
"Nov": "11月",
"Dec": "12月",
"January" : "1月",
"February" : "2月",
"March" : "3月",
"April" : "4月",
"June" : "6月",
"July" : "7月",
"August" : "8月",
"September" : "9月",
"October" : "10月",
"November" : "11月",
"December" : "12月",
},
"regexp": [ // 正則翻譯
/**
* 匹配時間格式
*
* 月 日 或 月 日, 年
* Mar 19, 2015 – Mar 19, 2016
* January 26 – March 19
* March 26
*
* 不知道是否穩定, 暫時先試用著. 2016-03-19 20:46:45
*
* 更新於 2021-10-04 15:19:18
* 增加 帶介詞 on 的格式,on 翻譯不體現
* on Mar 19, 2015
* on March 26
*
* 更新於 2021-10-10 13:44:36
* on 星期(簡寫), 月 日 年 // 個人訪問令牌 有效期
* on Tue, Nov 9 2021
*
* 2021-10-19 12:04:19 融合更多規則
*
* 4 Sep
* 30 Dec 2020
*
* on 4 Sep
* on 30 Dec 2020
*
* 2021-11-22 12:51:57 新增 格式
*
* 星期(全稱), 月 日, 年 // 倉庫-->洞察-->流量 圖示標識
* Sunday, November 14, 2021
*
* Tip:
* 正則中的 ?? 前面的字元 重複0次或1次
* 正則中的 ?: 非捕獲符號(即關閉圓括號的捕獲能力) 使用方法 (?: 匹配規則) -->該匹配不會被捕獲 為 $數字
*/
[/(?:on |)(?:(\d{1,2}) |)(?:(Sun(?:day)?|Mon(?:day)?|Tue(?:sday)?|Wed(?:nesday)?|Thu(?:rsday)?|Fri(?:day)?|Sat(?:urday)?), |)(?:(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May(?:)??|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)(?:,? |$))(\d{4}|)(\d{1,2}|)(?:,? (\d{4})|)/g, function (all, date1, week, month, year1, date2, year2) {
var weekKey = {
"Sun" : "週日",
"Mon" : "週一",
"Tue" : "週二",
"Wed" : "週三",
"Thu" : "週四",
"Fri" : "週五",
"Sat" : "週六",
};
var monthKey = {
"Jan": "1月",
"Feb": "2月",
"Mar": "3月",
"Apr": "4月",
"May": "5月",
"Jun": "6月",
"Jul": "7月",
"Aug": "8月",
"Sep": "9月",
"Oct": "10月",
"Nov": "11月",
"Dec": "12月"
};
var date = date1 ? date1 : date2;
var year = year1 ? year1 : year2;
return (year ? year + '年' : '') + monthKey[month.substring(0, 3)] + (date ? date + '日' : '') + (week ? ', ' + weekKey[week.substring(0, 3)] : '');
}],
/**
* 相對時間格式處理
*
* 更新於 2021-11-21 16:47:14
* 1. 新增 字首詞
* over xxx ago // 里程碑頁面 最後更新時間
* about xxx ago // 里程碑頁面 最後更新時間
* almost xxx ago // 里程碑頁面 最後更新時間
* less than xxx ago // 匯出帳戶資料
* 2. xxx之內的相對時間格式
* in 6 minutes // 拉取請求頁面
*
* 更新於 2021-11-22 11:54:30
* 1. 修復 Bug: 意外的擴大了匹配範圍(不帶字首與字尾的時間) 干擾了帶有相對時間的其他規則
* 7 months
*/
[/just now|now|last month|yesterday|(?:(over|about|almost|in) |)(an?|\d+)(?: |)(second|minute|hour|day|month|year)s?( ago|)/, function (all, prefix, count, unit, suffix) {
if (all === 'now') {
return '現在';
}
if (all === 'just now') {
return '剛剛';
}
if (all === 'last month') {
return '上個月';
}
if (all === 'yesterday') {
return '昨天';
}
if (count[0] === 'a') {
count = '1';
} // a, an 修改為 1
var unitKey = {second: '秒', minute: '分鐘', hour: '小時', day: '天', month: '個月', year: '年'};
if (suffix) {
return (prefix === 'about' || prefix === 'almost' ? '大約 ' : prefix === 'less than' ? '不到 ' : '') + count + ' ' + unitKey[unit] + (prefix === 'over' ? '多之前' : '之前');
} else {
return count + ' ' + unitKey[unit] + (prefix === 'in' ? '之內' : '之前');
}
}],
/**
* 匹配時間格式 2
*
* in 5m 20s
*/
[/^(?:(in) |)(?:(\d+)m |)(\d+)s/,function (all, prefix, minute, second) {
all = minute ? minute + '分' + second + '秒' : second + '秒';
return (prefix ? all + '之內' : all);
}],
[/Only members of ([^ ]+) will be able to see your status./, "只有 $1 的成員才能看到您的狀態。"],
],
},
"page-dashboard": { // 已登入的首頁 - 儀表板(含組織)
"static": { // 靜態翻譯
// 新手幫助
"Learn Git and GitHub without any code!": "瞭解 Git 和 GitHub 無需任何程式碼!",
"Using the Hello World guide, you’ll create a repository, start a branch,": "使用 Hello World 指南,您將建立一個倉庫,開始一個分支,",
"write comments, and open a pull request.": "寫評論,並建立一個拉取請求。(教程內容就不翻譯了...)",
"Let's get started!": "讓我們開始吧!",
"Hide this notice forever": "永久的隱藏該資訊",
"Welcome to GitHub! What’s next?": "歡迎來到 GitHub!下一步幹什麼?",
"Create a repository": "建立一個倉庫",
"Tell us about yourself": "介紹一下您自己",
"Browse interesting repositories": "瀏覽有趣的倉庫",
"on Twitter": "在 Twitter 上",
"You don’t have any repositories yet!": "您目前還沒有任何倉庫!",
"Create your first repository": "建立您的第一個倉庫",
"or": "或者",
"Learn more about Git and GitHub": "學習更多關於 Git 和 GitHub 知識",
// 組織
// [/You’re an owner of the ([^ ]+) organization!/, "您是 $1 組織的所有者!"],
// [/Create a repository for ([^ ]+)/, "為 $1 建立倉庫"],
"View and create teams": "檢視並建立團隊",
"See all owners": "檢視全部所有者",
// [/Edit ([^ ]+)’s settings/, "編輯 $1 的設定"],
"Return to your personal dashboard": "返回到您的個人儀表板",
// "Learn more about Git and GitHub": "瞭解更多關於 Git 和 GitHub 的資訊",
// 已有倉庫的專案
// 左側欄
"View organization": "檢視組織", // 組織
"Browse organization's repositories": "瀏覽組織的倉庫", // 組織
"Recent Repositories": "近期倉庫",
"New": "新建",
"Find a repository…": "搜尋倉庫…",
"Show more": "顯示更多",
"Your teams": "您的團隊",
"Find a team…": "搜尋團隊…",
"Recent activity": "近期活動",
"When you take actions across GitHub, we’ll provide links to that activity here.": "當您在 GitHub 上採取行動時,我們會在這裡提供該活動的連結。", // 組織
"Public": "公共",
"Private": "私有",
"Public archive": "公共存檔",
"Private archive": "私有存檔",
// 中間欄
"The home for all developers — including you.": "所有開發者的家園--包括您。",
"Welcome to your personal dashboard, where you can find an introduction to how GitHub works, tools to help you build software, and help merging your first lines of code.": "歡迎來到您的個人儀表板,在這裡您可以看到關於GitHub工作原理的介紹,幫助您構建軟體的工具,以及幫助您合併您的第一行程式碼。",
"Start writing code": "開始編寫程式碼",
"You're seeing this because you haven't created a repository in a while.": "您看到這個是因為您有一段時間沒有建立倉庫了。",
"Remove from dashboard": "從儀表板中刪除",
"Tools of the trade": "貿易工具",
"You're seeing this because you haven't opened a pull request in a while.": "您看到這個是因為您有一段時間沒有開啟拉取請求了。",
"Write code in your web browser": "在您的網路瀏覽器中編寫程式碼",
"Use": "使用",
"the github.dev web-based editor": "基於github.dev的網路編輯器",
"from your repository or pull request to create and commit changes.": "從您的倉庫或拉取請求中建立和提交更改。",
"Install a powerful code editor": "安裝一個強大的程式碼編輯器",
"is a multi-platform code editor optimized for building and debugging software.": "是針對構建和除錯軟體進行了最佳化的多平臺程式碼編輯器。",
"Set up your local dev environment": "設定本地開發環境",
"set up Git": "設定 Git",
", simplify your dev workflow with": ",簡化您的開發工作流程,使用",
", or": ",或",
"bring GitHub to the command line": "將GitHub 引入命令列",
"Get started on GitHub": "開始使用 GitHub",
"You're seeing this because you haven't used GitHub's core features, yet.": "您看到這個是因為您有一段時間沒有使用過 GitHub 的核心功能了。",
"About version control and Git": "關於版本控制和 Git",
"Learn about the version control system, Git, and how it works with GitHub.":"瞭解版本控制系統、Git 以及它如何與 GitHub 一起工作。",
"The GitHub Flow":"GitHub 流程",
"Adopt GitHub's lightweight, branch-based workflow to collaborate on projects.":"採用 GitHub 的輕量級、基於分支的工作流程來協作處理專案。",
"One moment please...": "稍等一會兒...",
"Loading activity...": "載入活動...",
"All activity": "所有活動",
"Following": "關注中",
// 動態 狀態詞
"starred": "星標了",
"created": "建立了",
"forked from": "復刻自",
"generated from": "建立自",
"forked": "復刻了",
"from": "來自",
"for": "",
"pushed to": "推送到",
"released": "釋出了",
"started following you": "開始關注了您",
"started following": "開始關注了",
"Updated": "更新於",
"created a repository": "建立了倉庫",
"Forked to": "復刻為",
"of": "",
"made": "將",
"public": "設為公共",
"committed": "提交於",
"Read more": "閱讀更多內容",
"More": "更多",
"Loading more…": "載入更多…",
"Subscribe to your news feed": "訂閱您的新聞提要",
"Subscribe to the": "訂閱", // 組織
"organization news feed": "組織的新聞提要", // 組織
"For you": "為您",
"Filter": "篩選",
"Filter your feed": "篩選提要",
"Announcements": "公告",
"Releases": "發行版",
"Follows": "關注",
"Recommendations": "推薦",
"Apply changes": "應用更改",
"Welcome to the new feed!": "歡迎來到新的提要!",
"We’re updating the cards and ranking all the time, so check back regularly. At first, you might need to follow some people or star some repositories to get started": "我們一直在更新卡片和排名,所以請定期檢視。一開始,您可能需要關注一些人或標星一些倉庫才能開始",
"Send feedback": "傳送反饋",
"published a release": "釋出發行版",
"forked a repository": "復刻倉庫",
"starred a repository": "星標倉庫",
"followed": "關注了",
"contributed to": "貢獻給",
// [/You're seeing this because you collaborated with ([^ ]+)/, "您看到這個是因為您與 $1 有過合作"],
"Contributors": "貢獻者",
"Report": "舉報",
"Recommended for you": "為您推薦",
"You're seeing this because of your activity.": "您看到這個是因為您的活動。",
// [/You're seeing this because you starred ([^ ]+)/, "您看到這個,是因為您星標了 $1"],
"Recommended based on people you follow": "根據您關注的人推薦",
"has a new discussion in": "有一條新討論,在",
"Join discussion": "參與討論",
"Popular among": "很受歡迎",
"people you follow": "在您關注的人中",
"Sponsor": "贊助",
// 右側欄
"Latest changes": "最新變化",
"View changelog →": "檢視更新日誌 →",
"Explore repositories": "探索倉庫",
"Explore more →": "探索更多 →",
// 使用者 浮動資訊卡
"Member of": "隸屬組織",
// [/, and (\d+) more/, ",以及其他 $1 個組織"],
// 組織 浮動資訊卡
// [/(\d+) repositor(y|ies)/, "$1 個倉庫"],
// [/(\d+) members?/, "$1 個成員"],
//
"Add to list": "新增到清單",
"Lists": "清單",
"You don't have any lists yet.": "您尚無任何清單。",
"Create list": "建立清單",
"Create a list to organize your starred repositories.": "建立一個清單來組織您的星標倉庫。",
"⭐️ Name this list": "⭐️ 清單名稱",
"Write a description": "簡單描述",
"Lists are currently in beta.": "清單目前處於測試階段。",
"Share feedback and report bugs.": "分享反饋意見和報告錯誤。",
"Creating...": "建立中...",
"Switch dashboard context": "切換預設身份", // 組織
"Manage organizations": "管理組織", // 組織
"Create organization": "建立組織", // 組織
// 首次加入組織通知
"You’ve been added to the": "您已經被新增到",
"organization!": "組織!",
"Here are some quick tips for a first-time organization member.": "以下是首次加入組織的一些提示。",
"Use the switch context button in the upper left corner of this page to switch between your personal context (": "使用頁面左上角的切換身份按鈕,您可以在(",
") and organizations you are a member of.": ")和組織身份之間進行切換。",
"After you switch contexts you’ll see an organization-focused dashboard that lists out organization repositories and activities.": "當您切換身份,您會看到一個組織為中心的頁面,其中列出了組織庫和活動。",
// 快捷鍵
"Dashboards": "儀表板",
"Go to your issues": "跳轉到您的議題",
"Go to your pull requests": "跳轉到您的拉取請求",
},
"regexp": [ // 正則翻譯
[/, and (\d+) more/, ",以及其他 $1 個組織"], // 使用者 浮動資訊卡
[/(\d+) repositor(y|ies)/, "$1 個倉庫"], // 組織 浮動資訊卡
[/(\d+) members?/, "$1 個成員"], // 組織 浮動資訊卡
[/is being deleted./, "正在被刪除。"], // 倉庫 組織被刪除
[/Your repository \"([^ ]+)\" was successfully deleted./, "您的倉庫 “$1” 已成功刪除。"], // 倉庫刪除
[/(\d+) releases?/, "$1 個發行版"],
[/(\d+) repositor(y|ies)/, "$1 個倉庫"],
[/(\d+) members?/, "$1 個成員"],
[/(\d+) followers?/, "$1 個關注者"],
[/(\d+) comments?/, "$1 條評論"],
[/(\d+) commits? to/, "$1 個提交到"],
[/(\d+) more commits? »/, "$1 個更多提交到"],
[/(\d+) issues? needs? help/, "$1 個議題需要幫助"],
[/Updated/, "更新於"],
[/You’re an owner of the ([^ ]+) organization!/, "您是 $1 組織的所有者!"], // 組織
[/Create a repository for ([^ ]+)/, "為 $1 建立倉庫"], // 組織
[/Edit ([^ ]+)’s settings/, "編輯 $1 的設定"], // 組織
[/You're seeing this because you collaborated with ([^ ]+)/, "您看到這個是因為您與 $1 有過合作"],
[/You're seeing this because you starred ([^ ]+)/, "您看到這個,是因為您星標了 $1"],
[/You're seeing this because you follow ([^ ]+)/, "您看到這個,是因為您復刻了 $1"],
],
},
"page-profile": { // 個人首頁 (含組織)
"static": { // 靜態翻譯
// 個人首頁 公關部分
// 左側使用者資訊欄
"Change your avatar": "修改頭像",
"You have blocked this user": "您已拉黑此使用者",
"Follow": "關注",
"Sponsor": "贊助",
"follower": "關注者",
"followers": "關注者",
"following": "關注",
"Joined": "加入於",
"Achievements": "成就",
"Highlights": "高光時刻",
"Organizations": "組織",
"Block or Report": "拉黑或舉報",
"Unblock or report user": "取消拉黑或舉報",
// 編輯個人資料
"Edit profile": "編輯個人資料",
"Name": "名稱",
"Bio": "個人簡介",
"Add a bio": "添加個人簡介",
"You can": "您可",
"@mention": "@使用者名稱或組織名",
"other users and organizations to link to them.": "連結到其他使用者和組織。",
"Company": "公司",
"Location": "位置",
"Website": "網站",
"Twitter username": "Twitter 使用者名稱",
// 成就浮動介面
"Arctic Code Vault Contributor": "北極程式碼庫貢獻者",
"contributed code to several repositories in the": "為多個倉庫貢獻了程式碼,在",
", and more!": ",更多!",
// 拉黑 & 舉報使用者對話方塊
// [/Block or report ([^ ]+)/, "拉黑或舉報 $1"],
"Block user": "拉黑使用者",
"Prevent this user from interacting with your repositories and sending you notifications. Learn more about": "防止該使用者與您的倉庫互動並向您傳送通知。瞭解更多關於",
"blocking users": "拉黑使用者",
"Unblock user": "取消拉黑",
"Allow this user to interact with your repositories and send you notifications. Learn more about": "允許該使用者與您的倉庫互動並向您傳送通知。瞭解更多關於",
"Report abuse": "舉報濫用",
"Contact GitHub support about this user’s behavior. Learn more about": "就該使用者的行為聯絡 GitHub 支援部門。瞭解更多關於",
"reporting abuse": "舉報濫用",
// 概述標籤卡 即主頁 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"Customize your pins": "自定義置頂",
"Customize your public pins": "自定義公共置頂", // 組織頁
// 設定置頂專案對話方塊
"Edit pinned public items": "設定置頂公共專案",
"Select up to six public repositories or gists you'd like to show.": "最多選擇 6 個要顯示的公共倉庫或程式碼片段。",
"Select up to six public repositories you'd like to show.": "最多選擇 6 個要顯示的公共倉庫。", // 組織頁
"Filter repositories and gists": "篩選倉庫和程式碼片段",
"Filter repositories": "篩選倉庫", // 組織頁
"Show:": "顯示:",
"Save pins": "儲存置頂",
// 頂部提醒
"Your pins have been updated. Drag and drop to reorder them.": "您的置頂已更新。拖放來重新排列它們。",