Vertaalbestanden 3/6: Identity- en Availability-meldingen naar de tekstbestanden (core.identity.*, availability.*)
Nederlandse tekst ongewijzigd (tests op exacte tekst). De uitzondering MasterControlledAvailabilityException krijgt een technische Engelse melding; de zin voor de beheerder komt uit availability.masterControlled. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,4 +10,25 @@ public class CoreTextsTests
|
||||
[Fact]
|
||||
public void TheCoreTextFiles_MatchTheDeclaredKeys_InDutchAndEnglish()
|
||||
=> TextAudit.Verify(typeof(TextCatalog).Assembly, TextAudit.KeysOf(typeof(CoreTexts)), "nl", "en").Should().BeEmpty();
|
||||
|
||||
[Theory]
|
||||
[InlineData("core.identity.auth.invalidCredentials", "Ongeldige inloggegevens.")]
|
||||
[InlineData("core.identity.auth.invalidRefreshToken", "Ongeldig refresh token.")]
|
||||
[InlineData("core.identity.auth.tokenReuse", "Mogelijk token misbruik gedetecteerd. Alle sessies zijn beëindigd.")]
|
||||
[InlineData("core.identity.auth.userNotFound", "Gebruiker niet gevonden.")]
|
||||
[InlineData("core.identity.invitation.userExists", "Er bestaat al een gebruiker met dit e-mailadres.")]
|
||||
[InlineData("core.identity.invitation.openInvitation", "Er staat al een openstaande uitnodiging voor dit e-mailadres.")]
|
||||
[InlineData("core.identity.invitation.invalid", "Ongeldige of verlopen uitnodiging.")]
|
||||
[InlineData("core.identity.invitation.accepted", "Account succesvol ingesteld. Je kunt nu inloggen.")]
|
||||
[InlineData("core.identity.setup.alreadyInitialized", "Systeem is al geïnitialiseerd.")]
|
||||
[InlineData("core.identity.setup.completed", "Systeem succesvol geïnitialiseerd. De eerste eigenaar is aangemaakt.")]
|
||||
public void TheDutchIdentityMessages_AreTheOnesThatWereInTheCode(string key, string expected)
|
||||
=> TextCatalog.Default.Get(new TextKey(key)).Should().Be(expected);
|
||||
|
||||
[Fact]
|
||||
public void TheMessagesThatCarryTheErrorsOfTheIdentityStore_KeepTheirFormat()
|
||||
{
|
||||
TextCatalog.Default.Get(CoreTexts.Identity.Invitation.CreateFailed, args: ("errors", "a, b")).Should().Be("Kan gebruiker niet aanmaken: a, b");
|
||||
TextCatalog.Default.Get(CoreTexts.Identity.Setup.CreateOwnerFailed, args: ("errors", "a, b")).Should().Be("Fout bij aanmaken eigenaar: a, b");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user