Skip to content

Commit f9d0df5

Browse files
committed
add i18n
1 parent 2231fd7 commit f9d0df5

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

i18n/locales/en.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,22 @@
128128
"navigation": "Package",
129129
"copy_name": "Copy package name",
130130
"deprecation": {
131+
"action": "Deprecate",
132+
"action_change": "Change deprecation",
131133
"package": "This package has been deprecated.",
132134
"version": "This version has been deprecated.",
133-
"no_reason": "No reason provided"
135+
"no_reason": "No reason provided",
136+
"modal": {
137+
"deprecating": "Deprecating",
138+
"title": "Deprecate",
139+
"title_version": "Deprecate Version",
140+
"reason": "Reason",
141+
"reason_placeholder": "e.g. Use package-x instead. This package is no longer maintained.",
142+
"success": "Package deprecated",
143+
"success_detail": "The package has been deprecated.",
144+
"version": "Version",
145+
"version_placeholder": "Leave empty to deprecate the whole package"
146+
}
134147
},
135148
"replacement": {
136149
"title": "You might not need this dependency.",

i18n/locales/zh-CN.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,22 @@
124124
"navigation": "包导航",
125125
"copy_name": "拷贝包名",
126126
"deprecation": {
127+
"action": "废弃",
128+
"action_change": "修改弃用",
127129
"package": "这个包已经被弃用。",
128130
"version": "这个版本已经被弃用。",
129-
"no_reason": "没有提供原因"
131+
"no_reason": "没有提供原因",
132+
"modal": {
133+
"deprecating": "废弃中",
134+
"title": "废弃",
135+
"title_version": "废弃版本",
136+
"reason": "原因",
137+
"reason_placeholder": "例如:使用 package-x 替代。这个包不再维护。",
138+
"success": "包已废弃",
139+
"success_detail": "这个包已废弃。",
140+
"version": "版本",
141+
"version_placeholder": "留空则废弃整个包"
142+
}
130143
},
131144
"replacement": {
132145
"title": "你可能不需要这个依赖。",

0 commit comments

Comments
 (0)