Added the informal address to the BeyondFacts Lab (#1176)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-08 21:10:51 +01:00
1 parent b6c3fbb5db
commit e77645f44c
48 files changed
+1254 -160

No files matched your search

+6 -1
View File
@@ -67,7 +67,12 @@ public sealed partial class CollectI18NKeysCommand
{
// The key in the format A.B.C.D.T{hash}, with the hash the app computes at runtime:
var key = $"UI_TEXT_CONTENT.{langNamespace}.T{I18NKeyHash.Of(match.Text)}";
allI18NContent.TryAdd(key, I18NKeyHash.NormalizeLineEndings(match.Text));
var text = I18NKeyHash.NormalizeLineEndings(match.Text);
allI18NContent.TryAdd(key, text);
// A text of TA() addresses the reader, so it gets a second key for the informal address:
if (match.HasAddressVariants)
allI18NContent.TryAdd(I18NAddressVariant.InformalKeyOf(key), text);
}
}