mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
Merge branch 'v2-translation' into v2-dev
# Conflicts: # packages/ui/certd-client/src/components/plugins/common/remote-select.vue # packages/ui/certd-client/src/router/source/modules/certd.ts # packages/ui/certd-client/src/views/certd/pipeline/certd-form/use.tsx # packages/ui/certd-client/src/views/certd/pipeline/crud.tsx
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { defineStore } from "pinia";
|
||||
import * as api from "./api.plugin";
|
||||
import { DynamicType, FormItemProps } from "@fast-crud/fast-crud";
|
||||
|
||||
import { i18n } from "/src/locales/i18n";
|
||||
interface PluginState {
|
||||
group?: PluginGroups;
|
||||
}
|
||||
@@ -31,8 +31,10 @@ export type PluginDefine = {
|
||||
export class PluginGroups {
|
||||
groups!: { [key: string]: PluginGroup };
|
||||
map!: { [key: string]: PluginDefine };
|
||||
t: any;
|
||||
constructor(groups: { [key: string]: PluginGroup }) {
|
||||
this.groups = groups;
|
||||
this.t = i18n.global.t;
|
||||
this.initGroup(groups);
|
||||
this.initMap();
|
||||
}
|
||||
@@ -40,7 +42,7 @@ export class PluginGroups {
|
||||
private initGroup(groups: { [p: string]: PluginGroup }) {
|
||||
const all: PluginGroup = {
|
||||
key: "all",
|
||||
title: "全部",
|
||||
title: this.t("certd.all"),
|
||||
order: 0,
|
||||
plugins: [],
|
||||
icon: "material-symbols:border-all-rounded",
|
||||
|
||||
Reference in New Issue
Block a user