mirror of https://github.com/abpframework/abp.git
5 changed files with 27 additions and 8 deletions
@ -0,0 +1,13 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
|
|||
namespace Volo.Abp.AspNetCore.App |
|||
{ |
|||
public class LocalizationTestController : AbpController |
|||
{ |
|||
public IActionResult Index1() |
|||
{ |
|||
return View(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@inject IViewLocalizer Localizer |
|||
@Localizer["Hello <b>{0}</b>.", "John"] |
|||
@ -1,5 +0,0 @@ |
|||
@using Volo.Abp.Ui |
|||
<h2>Exception test</h2> |
|||
@{ |
|||
throw new UserFriendlyException("test exception!"); |
|||
} |
|||
Loading…
Reference in new issue