mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56:09 +03:00
Make Localization actually try to help
This commit is contained in:
parent
6ef9b602e5
commit
666ba84a92
@ -136,7 +136,7 @@ namespace JetKarmaBot
|
|||||||
|
|
||||||
public int Count => ((IReadOnlyDictionary<string, string>)locale).Count;
|
public int Count => ((IReadOnlyDictionary<string, string>)locale).Count;
|
||||||
|
|
||||||
public string this[string name] => locale.ContainsKey(name) ? locale[name] : "unknown";
|
public string this[string name] => locale.ContainsKey(name) ? locale[name] : "Unmapped locale key: " + name;
|
||||||
|
|
||||||
public bool ContainsKey(string key)
|
public bool ContainsKey(string key)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user