mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 17:07:21 +00:00
Added the choice between formal and informal address to the whole app (#1200)
This commit is contained in:
1 parent
382db4b8d0
commit
c9a376f742
342 files changed
+14378
-1893
No files matched your search
@@ -61,6 +61,28 @@ public sealed class I18NAddressPromptTests
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EveryInformalVariantTakesTheWordsOfItsFormalText()
|
||||
{
|
||||
var content = new Dictionary<string, string>
|
||||
{
|
||||
[KEY] = "Enter your name.",
|
||||
[INFORMAL_KEY] = "Enter your name",
|
||||
["root::A::T1"] = "Save",
|
||||
["root::A::T2::INFORMAL"] = "A variant without its formal text.",
|
||||
};
|
||||
|
||||
I18NAddressPrompt.AlignInformalVariants(content);
|
||||
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(content[INFORMAL_KEY], Is.EqualTo("Enter your name."), "The plugin worded the formal text differently than the source code.");
|
||||
Assert.That(content[KEY], Is.EqualTo("Enter your name."));
|
||||
Assert.That(content["root::A::T1"], Is.EqualTo("Save"));
|
||||
Assert.That(content["root::A::T2::INFORMAL"], Is.EqualTo("A variant without its formal text."));
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AUsualTextAddressesTheReaderFormally()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user