Skip to content

Commit

Permalink
feat: add translation
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Dec 30, 2024
1 parent cc66244 commit 5af4d65
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 260 deletions.
254 changes: 254 additions & 0 deletions src/services/ui-translation/data/_browsingcountry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
export const BROWSING_COUNTRY = {
Afghanistan: 'Afghanistan (阿富汗)',
'Aland Islands': 'Aland Islands (奥兰群岛)',
Albania: 'Albania (阿尔巴尼亚)',
Algeria: 'Algeria (阿尔及利亚)',
'American Samoa': 'American Samoa (美属萨摩亚)',
Andorra: 'Andorra (安道尔)',
Angola: 'Angola (安哥拉)',
Anguilla: 'Anguilla (安圭拉)',
Antarctica: 'Antarctica (南极洲)',
'Antigua and Barbuda': 'Antigua and Barbuda (安提瓜和巴布达)',
Argentina: 'Argentina (阿根廷)',
Armenia: 'Armenia (亚美尼亚)',
Aruba: 'Aruba (阿鲁巴)',
'Asia/Pacific Region': 'Asia/Pacific Region (亚太地区)',
Australia: 'Australia (澳大利亚)',
Austria: 'Austria (奥地利)',
Azerbaijan: 'Azerbaijan (阿塞拜疆)',
Bahamas: 'Bahamas (巴哈马)',
Bahrain: 'Bahrain (巴林)',
Bangladesh: 'Bangladesh (孟加拉国)',
Barbados: 'Barbados (巴巴多斯)',
Belarus: 'Belarus (白俄罗斯)',
Belgium: 'Belgium (比利时)',
Belize: 'Belize (伯利兹)',
Benin: 'Benin (贝宁)',
Bermuda: 'Bermuda (百慕大)',
Bhutan: 'Bhutan (不丹)',
Bolivia: 'Bolivia (玻利维亚)',
'Bonaire Saint Eustatius and Saba': 'Bonaire Saint Eustatius and Saba (博内尔、圣尤斯特歇斯和萨巴)',
'Bosnia and Herzegovina': 'Bosnia and Herzegovina (波斯尼亚和黑塞哥维那)',
Botswana: 'Botswana (博茨瓦纳)',
'Bouvet Island': 'Bouvet Island (布维岛)',
Brazil: 'Brazil (巴西)',
'British Indian Ocean Territory': 'British Indian Ocean Territory (英属印度洋领地)',
'Brunei Darussalam': 'Brunei Darussalam (文莱)',
Bulgaria: 'Bulgaria (保加利亚)',
'Burkina Faso': 'Burkina Faso (布基纳法索)',
Burundi: 'Burundi (布隆迪)',
Cambodia: 'Cambodia (柬埔寨)',
Cameroon: 'Cameroon (喀麦隆)',
Canada: 'Canada (加拿大)',
'Cape Verde': 'Cape Verde (佛得角)',
'Cayman Islands': 'Cayman Islands (开曼群岛)',
'Central African Republic': 'Central African Republic (中非共和国)',
Chad: 'Chad (乍得)',
Chile: 'Chile (智利)',
China: 'China (中国大陆)',
'Christmas Island': 'Christmas Island (圣诞岛)',
'Cocos Islands': 'Cocos Islands (科科斯群岛)',
Colombia: 'Colombia (哥伦比亚)',
Comoros: 'Comoros (科摩罗)',
Congo: 'Congo (刚果)',
'Congo The Democratic Republic of the': 'Congo The Democratic Republic of the (刚果民主共和国)',
'Cook Islands': 'Cook Islands (库克群岛)',
'Costa Rica': 'Costa Rica (哥斯达黎加)',
"Cote D'Ivoire": "Cote D'Ivoire (科特迪瓦)",
Croatia: 'Croatia (克罗地亚)',
Cuba: 'Cuba (古巴)',
Curacao: 'Curacao (库拉索)',
Cyprus: 'Cyprus (塞浦路斯)',
'Czech Republic': 'Czech Republic (捷克共和国)',
Denmark: 'Denmark (丹麦)',
Djibouti: 'Djibouti (吉布提)',
Dominica: 'Dominica (多米尼加)',
'Dominican Republic': 'Dominican Republic (多米尼加共和国)',
Ecuador: 'Ecuador (厄瓜多尔)',
Egypt: 'Egypt (埃及)',
'El Salvador': 'El Salvador (萨尔瓦多)',
'Equatorial Guinea': 'Equatorial Guinea (赤道几内亚)',
Eritrea: 'Eritrea (厄立特里亚)',
Estonia: 'Estonia (爱沙尼亚)',
Ethiopia: 'Ethiopia (埃塞俄比亚)',
Europe: 'Europe (欧洲)',
'Falkland Islands': 'Falkland Islands (马尔维纳斯群岛)',
'Faroe Islands': 'Faroe Islands (法罗群岛)',
Fiji: 'Fiji (斐济)',
Finland: 'Finland (芬兰)',
France: 'France (法国)',
'French Guiana': 'French Guiana (法属圭亚那)',
'French Polynesia': 'French Polynesia (法属波利尼西亚)',
'French Southern Territories': 'French Southern Territories (法属南部领地)',
Gabon: 'Gabon (加蓬)',
Gambia: 'Gambia (冈比亚)',
Georgia: 'Georgia (格鲁吉亚)',
Germany: 'Germany (德国)',
Ghana: 'Ghana (加纳)',
Gibraltar: 'Gibraltar (直布罗陀)',
Greece: 'Greece (希腊)',
Greenland: 'Greenland (格陵兰)',
Grenada: 'Grenada (格林纳达)',
Guadeloupe: 'Guadeloupe (瓜德罗普)',
Guam: 'Guam (关岛)',
Guatemala: 'Guatemala (危地马拉)',
Guernsey: 'Guernsey (根西岛)',
Guinea: 'Guinea (几内亚)',
'Guinea-Bissau': 'Guinea-Bissau (几内亚比绍)',
Guyana: 'Guyana (圭亚那)',
Haiti: 'Haiti (海地)',
'Heard Island and McDonald Islands': 'Heard Island and McDonald Islands (赫德岛和麦克唐纳群岛)',
'Holy See (Vatican City State)': 'Holy See (Vatican City State) (梵蒂冈)',
Honduras: 'Honduras (洪都拉斯)',
'Hong Kong': 'Hong Kong (香港特别行政区)',
Hungary: 'Hungary (匈牙利)',
Iceland: 'Iceland (冰岛)',
India: 'India (印度)',
Indonesia: 'Indonesia (印度尼西亚)',
Iran: 'Iran (伊朗)',
Iraq: 'Iraq (伊拉克)',
Ireland: 'Ireland (爱尔兰)',
'Isle of Man': 'Isle of Man (马恩岛)',
Israel: 'Israel (以色列)',
Italy: 'Italy (意大利)',
Jamaica: 'Jamaica (牙买加)',
Japan: 'Japan (日本)',
Jersey: 'Jersey (泽西岛)',
Jordan: 'Jordan (约旦)',
Kazakhstan: 'Kazakhstan (哈萨克斯坦)',
Kenya: 'Kenya (肯尼亚)',
Kiribati: 'Kiribati (基里巴斯)',
Kuwait: 'Kuwait (科威特)',
Kyrgyzstan: 'Kyrgyzstan (吉尔吉斯斯坦)',
"Lao People's Democratic Republic": "Lao People's Democratic Republic (老挝)",
Latvia: 'Latvia (拉脱维亚)',
Lebanon: 'Lebanon (黎巴嫩)',
Lesotho: 'Lesotho (莱索托)',
Liberia: 'Liberia (利比里亚)',
Libya: 'Libya (利比亚)',
Liechtenstein: 'Liechtenstein (列支敦士登)',
Lithuania: 'Lithuania (立陶宛)',
Luxembourg: 'Luxembourg (卢森堡)',
Macau: 'Macau (澳门特别行政区)',
Macedonia: 'Macedonia (马其顿)',
Madagascar: 'Madagascar (马达加斯加)',
Malawi: 'Malawi (马拉维)',
Malaysia: 'Malaysia (马来西亚)',
Maldives: 'Maldives (马尔代夫)',
Mali: 'Mali (马里)',
Malta: 'Malta (马耳他)',
'Marshall Islands': 'Marshall Islands (马绍尔群岛)',
Martinique: 'Martinique (马提尼克)',
Mauritania: 'Mauritania (毛里塔尼亚)',
Mauritius: 'Mauritius (毛里求斯)',
Mayotte: 'Mayotte (马约特)',
Mexico: 'Mexico (墨西哥)',
Micronesia: 'Micronesia (密克罗尼西亚)',
Moldova: 'Moldova (摩尔多瓦)',
Monaco: 'Monaco (摩纳哥)',
Mongolia: 'Mongolia (蒙古)',
Montenegro: 'Montenegro (黑山)',
Montserrat: 'Montserrat (蒙特塞拉特)',
Morocco: 'Morocco (摩洛哥)',
Mozambique: 'Mozambique (莫桑比克)',
Myanmar: 'Myanmar (缅甸)',
Namibia: 'Namibia (纳米比亚)',
Nauru: 'Nauru (瑙鲁)',
Nepal: 'Nepal (尼泊尔)',
Netherlands: 'Netherlands (荷兰)',
'New Caledonia': 'New Caledonia (新喀里多尼亚)',
'New Zealand': 'New Zealand (新西兰)',
Nicaragua: 'Nicaragua (尼加拉瓜)',
Niger: 'Niger (尼日尔)',
Nigeria: 'Nigeria (尼日利亚)',
Niue: 'Niue (纽埃)',
'Norfolk Island': 'Norfolk Island (诺福克岛)',
'North Korea': 'North Korea (朝鲜)',
'Northern Mariana Islands': 'Northern Mariana Islands (北马里亚纳群岛)',
Norway: 'Norway (挪威)',
Oman: 'Oman (阿曼)',
Pakistan: 'Pakistan (巴基斯坦)',
Palau: 'Palau (帕劳)',
'Palestinian Territory': 'Palestinian Territory (巴勒斯坦)',
Panama: 'Panama (巴拿马)',
'Papua New Guinea': 'Papua New Guinea (巴布亚新几内亚)',
Paraguay: 'Paraguay (巴拉圭)',
Peru: 'Peru (秘鲁)',
Philippines: 'Philippines (菲律宾)',
'Pitcairn Islands': 'Pitcairn Islands (皮特凯恩群岛)',
Poland: 'Poland (波兰)',
Portugal: 'Portugal (葡萄牙)',
'Puerto Rico': 'Puerto Rico (波多黎各)',
Qatar: 'Qatar (卡塔尔)',
Reunion: 'Reunion (留尼汪)',
Romania: 'Romania (罗马尼亚)',
'Russian Federation': 'Russian Federation (俄罗斯)',
Rwanda: 'Rwanda (卢旺达)',
'Saint Barthelemy': 'Saint Barthelemy (圣巴泰勒米)',
'Saint Helena': 'Saint Helena (圣赫勒拿)',
'Saint Kitts and Nevis': 'Saint Kitts and Nevis (圣基茨和尼维斯)',
'Saint Lucia': 'Saint Lucia (圣卢西亚)',
'Saint Martin': 'Saint Martin (圣马丁)',
'Saint Pierre and Miquelon': 'Saint Pierre and Miquelon (圣皮埃尔和密克隆)',
'Saint Vincent and the Grenadines': 'Saint Vincent and the Grenadines (圣文森特和格林纳丁斯)',
Samoa: 'Samoa (萨摩亚)',
'San Marino': 'San Marino (圣马力诺)',
'Sao Tome and Principe': 'Sao Tome and Principe (圣多美和普林西比)',
'Saudi Arabia': 'Saudi Arabia (沙特阿拉伯)',
Senegal: 'Senegal (塞内加尔)',
Serbia: 'Serbia (塞尔维亚)',
Seychelles: 'Seychelles (塞舌尔)',
'Sierra Leone': 'Sierra Leone (塞拉利昂)',
Singapore: 'Singapore (新加坡)',
'Sint Maarten': 'Sint Maarten (荷属圣马丁)',
Slovakia: 'Slovakia (斯洛伐克)',
Slovenia: 'Slovenia (斯洛文尼亚)',
'Solomon Islands': 'Solomon Islands (所罗门群岛)',
Somalia: 'Somalia (索马里)',
'South Africa': 'South Africa (南非)',
'South Georgia and the South Sandwich Islands':
'South Georgia and the South Sandwich Islands (南乔治亚岛和南桑威奇群岛)',
'South Korea': 'South Korea (韩国)',
'South Sudan': 'South Sudan (南苏丹)',
Spain: 'Spain (西班牙)',
'Sri Lanka': 'Sri Lanka (斯里兰卡)',
Sudan: 'Sudan (苏丹)',
Suriname: 'Suriname (苏里南)',
'Svalbard and Jan Mayen': 'Svalbard and Jan Mayen (斯瓦尔巴和扬马延)',
Swaziland: 'Swaziland (斯威士兰)',
Sweden: 'Sweden (瑞典)',
Switzerland: 'Switzerland (瑞士)',
'Syrian Arab Republic': 'Syrian Arab Republic (叙利亚)',
Taiwan: 'Taiwan (中国台湾)',
Tajikistan: 'Tajikistan (塔吉克斯坦)',
Tanzania: 'Tanzania (坦桑尼亚)',
Thailand: 'Thailand (泰国)',
'Timor-Leste': 'Timor-Leste (东帝汶)',
Togo: 'Togo (多哥)',
Tokelau: 'Tokelau (托克劳)',
Tonga: 'Tonga (汤加)',
'Trinidad and Tobago': 'Trinidad and Tobago (特立尼达和多巴哥)',
Tunisia: 'Tunisia (突尼斯)',
Turkey: 'Turkey (土耳其)',
Turkmenistan: 'Turkmenistan (土库曼斯坦)',
'Turks and Caicos Islands': 'Turks and Caicos Islands (特克斯和凯科斯群岛)',
Tuvalu: 'Tuvalu (图瓦卢)',
Uganda: 'Uganda (乌干达)',
Ukraine: 'Ukraine (乌克兰)',
'United Arab Emirates': 'United Arab Emirates (阿拉伯联合酋长国)',
'United Kingdom': 'United Kingdom (英国)',
'United States': 'United States (美国)',
'United States Minor Outlying Islands': 'United States Minor Outlying Islands (美国本土外小岛屿)',
Uruguay: 'Uruguay (乌拉圭)',
Uzbekistan: 'Uzbekistan (乌兹别克斯坦)',
Vanuatu: 'Vanuatu (瓦努阿图)',
Venezuela: 'Venezuela (委内瑞拉)',
Vietnam: 'Vietnam (越南)',
'Virgin Islands British': 'Virgin Islands British (英属维尔京群岛)',
'Virgin Islands U.S.': 'Virgin Islands U.S. (美属维尔京群岛)',
'Wallis and Futuna': 'Wallis and Futuna (瓦利斯和富图纳)',
'Western Sahara': 'Western Sahara (西撒哈拉)',
Yemen: 'Yemen (也门)',
Zambia: 'Zambia (赞比亚)',
Zimbabwe: 'Zimbabwe (津巴布韦)',
} as const;
15 changes: 7 additions & 8 deletions src/services/ui-translation/data/hentaiathome.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { merge } from '../helper';
import { BROWSING_COUNTRY } from './_browsingcountry';

merge(
/^\/hentaiathome\.php\??$/,
Expand Down Expand Up @@ -56,6 +57,7 @@ merge(
Online: '在线',
Offline: '离线',
'Not available when offline': '离线状态下不可用',
...BROWSING_COUNTRY,

'Apply for H@H participation': '参与申请 H@H',
'For information on how to participate in the Hentai@Home Project, refer to the ':
Expand Down Expand Up @@ -89,15 +91,12 @@ merge(
'Your application is pending. You can still make changes below if necessary.':
'您的申请正在等待处理。如有必要,您仍可以在下方修改申请。',

'If the auto-detected country is wrong, contact Tenboro to have an override applied. Include the correct country, client ID and IP address in your message, and ':
'如果自动检测的国家/地区错误,请联系 Tenboro 以进行更改。在消息中包含正确的国家/地区、客户端 ID 和 IP 地址,并',
'If the auto-detected country is wrong, ': '如果自动检测的国家/地区错误,请',
' to have an override applied. Include the correct country, client ID and IP address in your message, and ':
'以进行更改。在消息中包含正确的国家/地区、客户端 ID 和 IP 地址,并',
'make sure to keep your client running': '确保您的客户端保持运行',
'. Having the client set to the wrong country will make it perform worse than it would otherwise do. If the country is shown in ':
'。位于错误的国家/地区的客户端的性能表现将不如预期。如果国家/地区显示为 ',
red: '红色',
' that means it appears to be located outside of its home region, and ': ',则意味着它似乎位于其所在地区之外,',
'will not be assigned new ranges nor gain any hath': '不会再被分配新的范围,也不会获得 Hath',
'. Contact Tenboro if you need to change the home region.': '。如果您需要更改所在地区,请联系 Tenboro。',
'. Having a client set to the wrong country will cause a variety of issues, and makes it perform worse than it would otherwise do.':
'。将客户端设置为错误的国家/地区会导致各种问题,并使其性能表现不如预期。',

'Free Archive Quota: ': '免费的存档配额:',
', measured in a 168-hour sliding window. Clients must be ':
Expand Down
Loading

0 comments on commit 5af4d65

Please sign in to comment.