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:
@@ -473,7 +473,7 @@ export default function AdminPolicyEdit() {
|
||||
<option value="">{t('admin.policies.form.selectResource')}</option>
|
||||
{permissionRegistry?.map((section) => (
|
||||
<option key={section.section} value={section.section}>
|
||||
{section.section}
|
||||
{t(`admin.roles.form.permissionSections.${section.section}`, section.section)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
@@ -500,7 +500,7 @@ export default function AdminPolicyEdit() {
|
||||
}`}
|
||||
aria-pressed={selected}
|
||||
>
|
||||
{action}
|
||||
{t(`admin.roles.form.permissionActions.${action}`, action)}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user