Skip to content

Commit

Permalink
fix(i18n): fix Type Filter options and Preview button text
Browse files Browse the repository at this point in the history
fix(i18n): fix Type Filter options and Preview button text
  • Loading branch information
DesnLee authored Jul 8, 2022
2 parents 60c2ac3 + 784806e commit ab9aae0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
3 changes: 2 additions & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "Sub Store",
"name": "Sub-Store Progressive Web App",
"name": "Sub Store",
"icons": [
{
"src": "/appicons/appicon-192.webp",
Expand All @@ -16,6 +16,7 @@
"start_url": "/",
"id": "/",
"background_color": "#121212",
"theme_color": "#121212",
"display": "standalone",
"scope": "/",
"description": "A sub-converter running in a Progressive Web App"
Expand Down
21 changes: 16 additions & 5 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
editorPage: {
subConfig: {
btn: {
compare: 'Instant Preview',
compare: 'Preview',
save: 'Save',
},
pop: {
Expand Down Expand Up @@ -142,7 +142,8 @@ export default {
},
ua: {
label: 'User-Agent',
placeholder: 'The User-Agent for downloading the original subscription',
placeholder:
'The User-Agent for downloading the original subscription',
},
},
commonOptions: {
Expand Down Expand Up @@ -224,7 +225,16 @@ export default {
},
'Type Filter': {
label: 'Node Type Filter',
options: ['Google', 'IP-API', 'Cloudflare'],
options: [
'ShadowSocks',
'ShadowSocks R',
'VMess',
'VLess',
'Trojan',
'Http(s)',
'Socks5',
'Snell',
],
tipsTitle: 'Node Type Filter Tips',
tipsDes: '节点类型过滤器操作说明',
},
Expand Down Expand Up @@ -355,7 +365,7 @@ export default {
syncSwitcher: 'Enable Sync',
syncAllSucceed: 'Sync succeed',
emptySub: {
title: 'You haven\' add any synced artifacts',
title: "You haven' add any synced artifacts",
desc: 'You can access the artifact anywhere via Gist',
btn: 'Add an artifact',
},
Expand Down Expand Up @@ -386,7 +396,8 @@ export default {
placeholder: 'Name',
isRequired: 'Name is required',
isExist: 'Name is already taken',
isValid: 'Name should only include letters, numbers, underscores, and dashes',
isValid:
'Name should only include letters, numbers, underscores, and dashes',
},
displayName: {
label: 'Display Name',
Expand Down
11 changes: 7 additions & 4 deletions src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
succeedMsg: '保存成功!',
deleteTitle: '删除确认',
deleteDes:
'是否确认删除此操作?删除后不可恢复!\ntips: 可使用开关控制即时预览时是否生效',
'是否确认删除此操作?删除后不可恢复!\n\ntips: 可使用开关控制即时预览时是否生效',
deleteConfirm: '确认删除',
deleteCancel: '取消',
leaveCancel: '继续编辑',
Expand Down Expand Up @@ -244,14 +244,16 @@ export default {
options: ['保留模式', '过滤模式'],
placeholder: ['填入正则表达式'],
tipsTitle: '正则过滤操作提示',
tipsDes: '按照正则表达式过滤节点。保留模式下,节点名匹配到任何一个正则表达式的都会被保留;过滤模式下,节点名匹配到任何一个正则表达式的都会被移除',
tipsDes:
'按照正则表达式过滤节点。保留模式下,节点名匹配到任何一个正则表达式的都会被保留;过滤模式下,节点名匹配到任何一个正则表达式的都会被移除',
},
'Regex Sort Operator': {
label: '正则排序',
des: ['正则表达式'],
placeholder: ['填入正则表达式'],
tipsTitle: '正则排序操作提示',
tipsDes: '按照正则表达式进行排序。节点名匹配到第一个正则表达式的会排在最前面,匹配到第二个正则表达式的会排在第二个位置,以此类推',
tipsDes:
'按照正则表达式进行排序。节点名匹配到第一个正则表达式的会排在最前面,匹配到第二个正则表达式的会排在第二个位置,以此类推',
},
'Regex Delete Operator': {
label: '正则删除',
Expand Down Expand Up @@ -280,7 +282,8 @@ export default {
placeholder: '节点名和序号之间的连接符,如:- ',
},
tipsTitle: '节点去重操作提示',
tipsDes: '对名字重复的节点进行操作(移除/重命名)。重命名模式下,会自动为重名节点添加序号,序号样式和位置可以自定义。同时序号和名字之间的连接符也可以自定义',
tipsDes:
'对名字重复的节点进行操作(移除/重命名)。重命名模式下,会自动为重名节点添加序号,序号样式和位置可以自定义。同时序号和名字之间的连接符也可以自定义',
},
'Script Filter': {
label: '脚本过滤器',
Expand Down
2 changes: 1 addition & 1 deletion src/views/SubEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
data['display-name'] = data.displayName;
data.process = actionsToProcess(data.process, actionsList, ignoreList);
console.log('submit.....\n', data);
// console.log('submit.....\n', data);
const duration = 1000;
let res = null;
Expand Down
2 changes: 1 addition & 1 deletion src/views/Sync.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
};
const preview = () => {
console.log(artifactStoreUrl.value);
// console.log(artifactStoreUrl.value);
window.open(artifactStoreUrl.value);
};
Expand Down

0 comments on commit ab9aae0

Please sign in to comment.