From 50d8826af2ee80444cebd8fb4093af31796ce95b Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 21 Oct 2024 17:29:19 +0800 Subject: [PATCH] refactor: translate permission names to Chinese (#130) Signed-off-by: Ryan Wang --- src/main/resources/extensions/roleTemplate.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/extensions/roleTemplate.yaml b/src/main/resources/extensions/roleTemplate.yaml index 056a081..bea0cc4 100644 --- a/src/main/resources/extensions/roleTemplate.yaml +++ b/src/main/resources/extensions/roleTemplate.yaml @@ -5,7 +5,7 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "Moments" + rbac.authorization.halo.run/module: "瞬间" rbac.authorization.halo.run/display-name: "瞬间查看" rbac.authorization.halo.run/ui-permissions: | ["plugin:moments:view"] @@ -24,7 +24,7 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "Moments" + rbac.authorization.halo.run/module: "瞬间" rbac.authorization.halo.run/display-name: "瞬间管理" rbac.authorization.halo.run/ui-permissions: | ["plugin:moments:manage"] @@ -45,7 +45,7 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "Moments" + rbac.authorization.halo.run/module: "瞬间" rbac.authorization.halo.run/display-name: "允许发布自己的瞬间" rbac.authorization.halo.run/ui-permissions: | ["uc:plugin:moments:publish"] @@ -61,7 +61,7 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "Moments" + rbac.authorization.halo.run/module: "瞬间" rbac.authorization.halo.run/display-name: "发布瞬间无需审核" rbac.authorization.halo.run/dependencies: | ["role-template-uc-moments-publish"] @@ -75,7 +75,7 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/module: "Moments" + rbac.authorization.halo.run/module: "瞬间" rbac.authorization.halo.run/display-name: "允许删除自己的瞬间" rbac.authorization.halo.run/ui-permissions: | ["uc:plugin:moments:delete"]