Browse Source

DashboardDemo localization

pull/1149/head
Yunus Emre Kalkan 7 years ago
parent
commit
08b76ca68c
  1. 2
      samples/DashboardDemo/src/DashboardDemo.Domain/Localization/DashboardDemo/en.json
  2. 6
      samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/RoleListWidgetViewComponent.cshtml
  3. 6
      samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/UserCountWidgetViewComponent.cshtml

2
samples/DashboardDemo/src/DashboardDemo.Domain/Localization/DashboardDemo/en.json

@ -3,6 +3,8 @@
"texts": { "texts": {
"Menu:Home": "Home", "Menu:Home": "Home",
"Welcome": "Welcome", "Welcome": "Welcome",
"RolesInApplication": "Roles in application",
"UserCount": "User count",
"LongWelcomeMessage": "Welcome to the application. This is a startup project based on the ABP framework. For more information, visit abp.io." "LongWelcomeMessage": "Welcome to the application. This is a startup project based on the ABP framework. For more information, visit abp.io."
} }
} }

6
samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/RoleListWidgetViewComponent.cshtml

@ -1,10 +1,12 @@
@page @inject IHtmlLocalizer<DashboardDemoResource> L
@using DashboardDemo.Localization.DashboardDemo
@using Microsoft.AspNetCore.Mvc.Localization
@model DashboardDemo.Pages.widgets.RoleListWidgetViewComponent @model DashboardDemo.Pages.widgets.RoleListWidgetViewComponent
@{ @{
} }
<div id="RoleListWidgetContainer"> <div id="RoleListWidgetContainer">
<abp-card background="Secondary"> <abp-card background="Secondary">
<abp-card-header> Roles in application :</abp-card-header> <abp-card-header> @L["RolesInApplication"] :</abp-card-header>
<abp-card-body> <abp-card-body>
<ul id="RoleList"> <ul id="RoleList">

6
samples/DashboardDemo/src/DashboardDemo.Web/Pages/widgets/UserCountWidgetViewComponent.cshtml

@ -1,10 +1,12 @@
@page @inject IHtmlLocalizer<DashboardDemoResource> L
@using DashboardDemo.Localization.DashboardDemo
@using Microsoft.AspNetCore.Mvc.Localization
@model DashboardDemo.Pages.widgets.UserCountWidgetViewComponent @model DashboardDemo.Pages.widgets.UserCountWidgetViewComponent
@{ @{
} }
<div id="UserCountWidgetContainer"> <div id="UserCountWidgetContainer">
<abp-card background="Info"> <abp-card background="Info">
<abp-card-header>User Count :</abp-card-header> <abp-card-header>@L["UserCount"] :</abp-card-header>
<abp-card-body> <abp-card-body>
<h1 id="UserCount"></h1> <h1 id="UserCount"></h1>
</abp-card-body> </abp-card-body>

Loading…
Cancel
Save