Initial commit
This commit is contained in:
15
Valheim Dashboard/Language.cs
Normal file
15
Valheim Dashboard/Language.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
|
||||
namespace Valheim_Dashboard;
|
||||
|
||||
public class Language
|
||||
{
|
||||
private static readonly ResourceManager ResourceManager = new ResourceManager("Valheim_Dashboard.Languages.Resources", typeof(Language).Assembly);
|
||||
|
||||
public static string GetString(string key)
|
||||
{
|
||||
return ResourceManager.GetString(key, CultureInfo.CurrentUICulture) ?? $"[{key}]";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user