Base solution for your next web application
Open Closed

How can we translate organization unit nodes? #4136


User avatar
0
mdonogma created

How can we translate organization unit nodes?

Example: permissions tree is translatable


2 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @Mdonogma,

    You need dynamic content translation for this. Asp.net zero doesn't support dynamic content translation.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @Mdonogma,

    As @alirizaadiyahsi said, AspNet Zero and ABP does not support content localization. But you can still add items to your locaalization files like

    <item name="OrganizationUnitCodes_ORG1">Headquarter</item>
    

    Then, when displaying organization Unit Codes, you can use

    @L("OrganizationUnitCodes_" + organizationUnit.Code)
    

    But you need to insert all organization unit codes to your localization files, at least for the default language.