Add the !cookie alias and allow yaml alliases in the translations file
This commit is contained in:
parent
8fadff4092
commit
ac43d087b1
4 changed files with 11 additions and 5 deletions
|
@ -3,6 +3,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using Xunit;
|
||||
using YamlDotNet.Core;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace Tests.Lib.Localization
|
||||
|
@ -17,8 +18,9 @@ namespace Tests.Lib.Localization
|
|||
|
||||
// Deserialize
|
||||
var input = new StringReader(translationFile);
|
||||
var mergingParser = new MergingParser(new Parser(input));
|
||||
var deserializer = new DeserializerBuilder().Build();
|
||||
var rawTranslations = deserializer.Deserialize<Dictionary<string, Dictionary<string, Dictionary<string, string>>>>(input);
|
||||
var rawTranslations = deserializer.Deserialize<Dictionary<string, Dictionary<string, Dictionary<string, string>>>>(mergingParser);
|
||||
|
||||
// These languages must be supported
|
||||
var supportedLanguages = new List<string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue