Skip to content

Commit

Permalink
feat: translate
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Jul 15, 2022
1 parent 851b2fe commit 87d177c
Show file tree
Hide file tree
Showing 7 changed files with 2,973 additions and 545 deletions.
2 changes: 1 addition & 1 deletion src/platform/node/extension-manager/lib/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ModuleManager implements ModuleManagerInterface {
// * If the extension already in local extension list, then do not repeat installation
if (list.includes(item.name)) return;
//!TODO this will reinstall all package, npm link(debug) package will be remove after npm install command,
// this.install(item);
this.install(item);
});
}
/**
Expand Down
2 changes: 1 addition & 1 deletion src/workbench/browser/src/app/pages/api/api.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<span
class="flex items-center justify-center mx-1 icon"
i18n-title
title="Quick look"
title="Enviroment Quick Look"
nz-popover
[nzPopoverContent]="envParams"
nzPopoverPlacement="bottomRight"
Expand Down
26 changes: 13 additions & 13 deletions src/workbench/browser/src/app/pages/api/edit/api-edit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class ApiEditService {
});
}
initListConf(opts) {
opts.title = opts.title || $localize`参数`;
opts.title = opts.title || $localize`Param`;
return {
setting: {
draggable: true,
Expand All @@ -45,33 +45,33 @@ export class ApiEditService {
itemExpression: 'ng-if="$index+1!==$ctrl.list.length"',
},
{
thKey: opts.nameTitle || $localize`${opts.title}`,
thKey: opts.nameTitle || $localize`${opts.title} Name`,
type: 'input',
modelKey: 'name',
placeholder: opts.nameTitle || $localize`${opts.title}`,
placeholder: opts.nameTitle || $localize`${opts.title} Name`,
width: 300,
mark: 'name',
},
{
thKey: $localize`必填`,
thKey: $localize`Required`,
type: 'checkbox',
modelKey: 'required',
mark: 'require',
width: 90,
width: 100,
},
{
thKey: $localize`说明`,
thKey: $localize`:@@Description:Description`,
type: 'input',
modelKey: 'description',
placeholder: $localize`${opts.title}说明`,
placeholder: $localize`${opts.title} Description`,
width: 200,
mark: 'description',
},
{
thKey: $localize`示例`,
thKey: $localize`Example`,
type: 'input',
modelKey: 'example',
placeholder: $localize`${opts.title}示例`,
placeholder: $localize`${opts.title} Example`,
width: 200,
mark: 'example',
},
Expand All @@ -80,7 +80,7 @@ export class ApiEditService {
class: 'w_250',
btnList: [
{
key: $localize`更多设置`,
key: $localize`More Settings`,
operateName: 'more',
param: `inputArg`,
itemExpression: `eo-attr-tip-placeholder="more_setting_btn" `,
Expand All @@ -92,12 +92,12 @@ export class ApiEditService {
},
},
{
key: $localize`插入`,
key: $localize`Insert`,
operateName: 'insert',
itemExpression: `eo-attr-tip-placeholder="insert_param_btn"`,
},
{
key: $localize`删除`,
key: $localize`:@@Delete:Delete`,
operateName: 'delete',
},
],
Expand Down Expand Up @@ -167,7 +167,7 @@ export class ApiEditService {
thKey: $localize`Required`,
type: 'checkbox',
modelKey: 'required',
width: 90,
width: 100,
mark: 'require',
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(nzClick)="nzClick($event)" [nzTreeTemplate]="nzTreeTemplate"></nz-tree>
<ng-template #nzTreeTemplate let-node>
<ng-template [ngIf]="!node.isLeaf">
<span class="text-sm">{{ node.title }}</span>
<span class="text-xs">{{ node.title }}</span>
</ng-template>
<ng-template [ngIf]="node.isLeaf">
<div (click)="insertCode(node)">
Expand Down

0 comments on commit 87d177c

Please sign in to comment.