Skip to content

Commit

Permalink
fix: add button text
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Info committed Jan 9, 2025
1 parent c73c2be commit 107a22d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/web/i18n/en/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"password.to_login": "Go to Login",
"password.verification_code": "Verification Code",
"permission.Manage": "Admin",
"permission.Add": "Add Permissions",
"permission.Manage tip": "Team admin with full permissions",
"permission.Read": "Read Only",
"permission.Read desc": "Members can only read related resources, cannot create new resources",
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/zh-CN/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"permission.Manage tip": "团队管理员,拥有全部权限",
"permission.Read": "仅读",
"permission.Read desc": "成员仅可阅读相关资源,无法新建资源",
"permission.Add": "添加权限",
"permission.Write": "可写",
"permission.Write tip": "除了可读资源外,还可以新建新的资源",
"permission.only_collaborators": "仅协作者访问",
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/zh-Hant/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"permission.Manage tip": "團隊管理員,擁有完整權限",
"permission.Read": "唯讀",
"permission.Read desc": "成員僅能閱讀相關資源,無法建立新資源",
"permission.Add": "新增權限",
"permission.Write": "可寫入",
"permission.Write tip": "除了可讀取資源外,還可以建立新的資源",
"permission.only_collaborators": "僅協作者可存取",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function PermissionManage({
}) {
const { t } = useTranslation();
const { userInfo } = useUserStore();
const [searchKey, setSearchKey] = useState('');

const collaboratorList = useContextSelector(
CollaboratorContext,
Expand Down Expand Up @@ -144,7 +143,7 @@ function PermissionManage({
leftIcon={<MyIcon name="common/add2" w={'14px'} />}
onClick={onOpenAddMember}
>
{t('common:common.Add')}
{t('user:permission.Add')}
</Button>
)}
</Flex>
Expand Down

0 comments on commit 107a22d

Please sign in to comment.