mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: add translations for permission sections and actions
Translate all permission section names (users, tickets, etc.) and action names (read, edit, delete, etc.) in ru/en/zh/fa locales. Apply translations in PermissionMatrix, PolicyEdit, and Policies list.
This commit is contained in:
@@ -174,7 +174,9 @@ function PermissionMatrix({
|
||||
onClick={() => toggleExpand(section.section)}
|
||||
className="flex flex-1 items-center justify-between"
|
||||
>
|
||||
<span className="text-sm font-medium text-dark-200">{section.section}</span>
|
||||
<span className="text-sm font-medium text-dark-200">
|
||||
{t(`admin.roles.form.permissionSections.${section.section}`, section.section)}
|
||||
</span>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-xs text-dark-500">
|
||||
{section.actions.filter((a) => isPermSelected(section.section, a)).length}/
|
||||
@@ -208,7 +210,7 @@ function PermissionMatrix({
|
||||
}`}
|
||||
aria-pressed={selected}
|
||||
>
|
||||
{action}
|
||||
{t(`admin.roles.form.permissionActions.${action}`, action)}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user