This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>@Resources.LimitedTimeOffer</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@String.Format(Resources.HelloUser, CurrentUser.Name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model List<Heaventure.Data.Constellation> | |
@{ | |
ViewBag.Title = "Home Page"; | |
} | |
<div class="row mt-lg"> | |
@foreach (var constellation in Model) | |
{ | |
<div class="col-md-4"> | |
<div class="panel panel-default"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With NPM | |
npm install --save-dev @babel/core@7.6.0 @lingui/cli@2.8.3 @lingui/macro@2.8.3 babel-core@7.0.0-bridge.0 | |
npm install --save @lingui/react@2.8.3 | |
# With Yarn | |
yarn add --dev @babel/core@7.6.0 @lingui/cli@2.8.3 @lingui/macro@2.8.3 babel-core@7.0.0-bridge.0 | |
yarn add @lingui/react@2.8.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Heaventure.Data; | |
using System.Web.Mvc; | |
namespace Heaventure.Controllers | |
{ | |
public class HomeController : BaseController | |
{ | |
// ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
using System.Threading; | |
using System.Web.Mvc; | |
namespace Heaventure.Controllers | |
{ | |
public class BaseController : Controller | |
{ | |
protected override void OnActionExecuting( | |
ActionExecutingContext filterContext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
using System.Threading; | |
using System.Web.Mvc; | |
namespace Heaventure.Controllers | |
{ | |
public class BaseController : Controller | |
{ | |
public ActionResult RedirectToLocalized() | |
{ |