Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ABP Localization in Areas Controller #788


User avatar
0
keepfool created

I have some controllers under Areas (e.g. Master), but I can't call the @L("SomeString") method in its view page. If I create a controller under Controllers folder, then I can use the @L("SomeString") method to get the localized string. So how can I use @L method in the views of controllers under areas.


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    You should set pageBaseType to your viewbase in web.config of your area. Example: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-templates/blob/master/src/AbpCompanyName.AbpProjectName.WebSpaAngular/Views/web.config#L13">https://github.com/aspnetboilerplate/as ... config#L13</a>