diff --git a/idee5.Globalization.Test/WebApiTests.cs b/idee5.Globalization.Test/WebApiTests.cs index 5943cb7..12ff0a7 100644 --- a/idee5.Globalization.Test/WebApiTests.cs +++ b/idee5.Globalization.Test/WebApiTests.cs @@ -22,6 +22,6 @@ public async Task CanReadResourceTranslations() { // Assert Assert.IsNotNull(response); Assert.AreEqual("CommonTerms", response.ResourceSet); - Assert.AreEqual(3, response.Translations.Length); + Assert.AreEqual(3, response.Translations.Count); } } diff --git a/idee5.Globalization/Models/ResourceTranslations.cs b/idee5.Globalization/Models/ResourceTranslations.cs index b91d6b6..dabc82e 100644 --- a/idee5.Globalization/Models/ResourceTranslations.cs +++ b/idee5.Globalization/Models/ResourceTranslations.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; namespace idee5.Globalization.Models; /// @@ -8,7 +9,7 @@ public record ResourceTranslations : ResourceKey { public ResourceTranslations() { Translations = []; } - public ResourceTranslations(string resourceSet, string id, string? industry, string? customer, Translation[] translations) { + public ResourceTranslations(string resourceSet, string id, string? industry, string? customer, IList translations) { ResourceSet = resourceSet; Id = id; Industry = industry; @@ -16,12 +17,12 @@ public ResourceTranslations(string resourceSet, string id, string? industry, str Translations = translations; } - public ResourceTranslations(ResourceKey original, Translation[] translations) : base(original) { + public ResourceTranslations(ResourceKey original, IList translations) : base(original) { Translations = translations ?? throw new ArgumentNullException(nameof(translations)); } /// /// Translations of the . /// - public Translation[] Translations { get; set; } + public IList Translations { get; set; } } diff --git a/idee5.Globalization/idee5.Globalization.csproj b/idee5.Globalization/idee5.Globalization.csproj index 375cc01..2dd41b9 100644 --- a/idee5.Globalization/idee5.Globalization.csproj +++ b/idee5.Globalization/idee5.Globalization.csproj @@ -13,7 +13,7 @@ Globalization extensions. Enables database support for localization resources and parlances for industries and customers.. idee5 © idee5 2016 - 2024 - 3.5.4 + 3.5.5 idee5, Globalization, Localization Improved serialization support enable