Skip to content

Commit

Permalink
增加词条: 增补丢失的接受邀请页面
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Nov 21, 2023
1 parent 4088a27 commit beea16f
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ I18N.conf = {
rePagePath: /^\/($|dashboard|signup|login\/oauth|login|logout|sessions?|password_reset|orgs|explore|topics|notifications\/subscriptions|notifications|watching|stars|issues|pulls|search|trending|showcases|new\/(import|project)|new|import|settings\/(profile|admin|appearance|accessibility|notifications|billing|emails|security_analysis|security-log|security|auth|sessions|keys|ssh|gpg|organizations|enterprises|blocked_users|interaction_limits|code_review_limits|repositories|codespaces|deleted_repositories|packages|copilot|pages|replies|installations|apps\/authorizations|reminders|sponsors-log|apps\/new|apps|(?:personal-access-|)tokens|developers|applications\/new|applications)|settings|installations\/new|marketplace|apps|account\/organizations\/new|projects|account\/billing\/history|redeem|discussions|events|collections|sponsors\/explore|github-copilot\/signup|codespaces|developer\/register)/,

// 仓库路径
rePagePathRepo: /^\/[^\/]+\/[^\/]+\/(issues|pull|watchers|stargazers|new|edit|delete|upload|find|wiki|branches|discussions|activity|releases|packages|tags|labels|milestones|compare|commit|blob|actions|runs|deployments|security|pulse|community|forks|fork|graphs\/(contributors|community|traffic|commit-activity|code-frequency)|network$|network\/(dependencies|dependents|updates|members)|settings\/(access|code_review_limits|interaction_limits|branches|branch_protection_rules|tag_protection|rules|actions|hooks|environments|codespaces|pages|security_analysis|dependabot_rules|keys|secrets|variables|installations|notifications)|settings|transfer|projects\/new|pkgs|contribute|subscription)/,
rePagePathRepo: /^\/[^\/]+\/[^\/]+\/(issues|pull|watchers|stargazers|new|edit|delete|upload|find|wiki|branches|discussions|activity|releases|packages|tags|labels|milestones|compare|commit|blob|actions|runs|deployments|security|pulse|community|forks|fork|graphs\/(contributors|community|traffic|commit-activity|code-frequency)|network$|network\/(dependencies|dependents|updates|members)|settings\/(access|code_review_limits|interaction_limits|branches|branch_protection_rules|tag_protection|rules|actions|hooks|environments|codespaces|pages|security_analysis|dependabot_rules|keys|secrets|variables|installations|notifications)|settings|transfer|projects\/new|pkgs|contribute|subscription|invitations)/,

// 组织路径
rePagePathOrg: /^\/(?:orgs|organizations)\/[^\/]+\/(repositories|discussions|projects|packages|teams|new-team|people|outside-collaborators|pending_collaborators|dashboard|billing_managers\/new|settings\/(profile|billing|roles|member_privileges|teams|import-export|blocked_users|interaction_limits|code_review_limits|moderators|repository-defaults|rules|codespaces|copilot|actions|hooks|discussions|packages|pages|projects|security_analysis|security|dependabot_rules|domains|secrets|variables|oauth_application_policy|installations|personal-access-token|reminders|sponsors-log|audit-log|deleted_repositories|applications\/new|applications|apps\/new|apps|publisher)|topics|domain\/new|audit-log\/event_settings|billing\/history|enterprise_plan)/,
Expand Down Expand Up @@ -9341,6 +9341,28 @@ I18N.zh["repository/subscription"] = { // 仓库 - 通知状态页面
],
};

I18N.zh["repository/invitations"] = { // 仓库 - 接受邀请页面
"static": { // 静态翻译

// 接受邀请 /<user-name>/<repo-name>/invitations
"invited you to collaborate": "邀请您进行协作",
"Accept invitation": "接受邀请",
"Decline": "拒绝",
"Owners": "所有者",
"Your public profile information": "您的公开个人资料信息",
"Certain activity": "某些活动",
"within this repository": "在这个仓库中",
"Country of request origin": "请求的来源国",
"Your access level for this repository": "您对该仓库的访问等级",
"Your IP address": "您的 IP 地址",
"Is this user sending spam or malicious content?": "此用户是否发送垃圾邮件或恶意内容?",

},
"regexp": [ // 正则翻译
[/of ([^ ]+) will be able to see:/, "$1 将能够看到:"], // 邀请页
],
};


// 洞察 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Expand Down Expand Up @@ -12328,6 +12350,10 @@ I18N.zh["session-authentication"] = { // 登录页 包含(/login, /session, /ses
"Select account to sign out": "选择要登出的帐户",
"Sign out from all accounts": "登出所有账户",

// 接受邀请 /<user-name>/<repo-name>/invitations
// 跳转至 协作者 / 协作者和团队 - 访问管理页面 /<user-name>/<repo-name>/settings/access 验证
// 顶部提醒
"Repository invitation URLs work for invited users only. You may only share this URL with an invited user.": "仓库邀请 URL 仅适用于受邀请的用户。您只能与受邀请的用户共享此 URL。",
},
"regexp": [ // 正则翻译
[/(\d+) verified emails?/, "$1 个经过验证的邮箱"],
Expand Down

0 comments on commit beea16f

Please sign in to comment.