Browse Source

remove space character tokenization from ResxLocalizationManager

pull/2395/head
Cenngo 2 years ago
parent
commit
0e305d6b1e
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/Discord.Net.Interactions/LocalizationManagers/ResxLocalizationManager.cs

+ 1
- 2
src/Discord.Net.Interactions/LocalizationManagers/ResxLocalizationManager.cs View File

@@ -12,7 +12,6 @@ namespace Discord.Interactions
{
private const string NameIdentifier = "name";
private const string DescriptionIdentifier = "description";
private const string SpaceToken = "~";

private readonly ResourceManager _resourceManager;
private readonly IEnumerable<CultureInfo> _supportedLocales;
@@ -39,7 +38,7 @@ namespace Discord.Interactions

private IDictionary<string, string> GetValues(IList<string> key, string identifier)
{
var entryKey = (string.Join(".", key) + "." + identifier).Replace(" ", SpaceToken);
var entryKey = (string.Join(".", key) + "." + identifier);

var result = new Dictionary<string, string>();



Loading…
Cancel
Save