You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
831 B

using System;
using System.Threading;
using Gos.Core;
namespace Gos.Web.Models
{
public abstract class BaseViewModel
{
public virtual string BodyCssClass { get; }
public string CurrentUiLanguage => Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName;
public string ChangeUiCulture =>
CurrentUiLanguage.Equals(Constants.InterfaceLanguages.English, StringComparison.OrdinalIgnoreCase)
? Constants.InterfaceLanguages.Slovene
: Constants.InterfaceLanguages.English;
public string ChangeUiText =>
CurrentUiLanguage.Equals(Constants.InterfaceLanguages.English, StringComparison.OrdinalIgnoreCase)
? Constants.InterfaceLanguages.SloveneName
: Constants.InterfaceLanguages.EnglishName;
}
}