0

I create role base access control and I want to translate this role for user like this

"CanCreateUser" translate to اضافة مستخدم
"CanUpdateUser" to تعديل مستخدم

and so on

How can I do that?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
am441
  • 19
  • 3
  • Could you pls explain the saying `translate this role for user` ? Save this words into database? Display them in the website or anything else? – Tiny Wang Aug 27 '21 at 01:30
  • yeah I want to Display all role by Arabic language – am441 Aug 28 '21 at 11:12
  • Then, is it an option to write logic code in page like `if(role =="CanCreateUser" ){role = اضافة مستخدم} else if(){xxx}` ? I mean you've realized role based controller, that means the response of access controller can get the role information. – Tiny Wang Aug 30 '21 at 01:53

0 Answers0