fix: some build & linter warnings
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public static class Default
|
||||
{
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public class English : Localization
|
||||
{
|
||||
public English() : base()
|
||||
public English()
|
||||
{
|
||||
Values["Language"] = "English";
|
||||
Values["ButtonGrid_Title"] = "Menu";
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public class German : Localization
|
||||
{
|
||||
public German() : base()
|
||||
public German()
|
||||
{
|
||||
Values["Language"] = "Deutsch (German)";
|
||||
Values["ButtonGrid_Title"] = "Menü";
|
||||
|
||||
@@ -1,27 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public abstract class Localization
|
||||
{
|
||||
public Dictionary<String, String> Values = new Dictionary<string, string>();
|
||||
|
||||
public String this[String key]
|
||||
{
|
||||
get
|
||||
{
|
||||
return Values[key];
|
||||
}
|
||||
}
|
||||
|
||||
public Localization()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
public Dictionary<string, string> Values = new Dictionary<string, string>();
|
||||
|
||||
public string this[string key] => Values[key];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user