diff --git a/idee5.Globalization/Models/Translation.cs b/idee5.Globalization/Models/Translation.cs index 3558f76..4c9ac68 100644 --- a/idee5.Globalization/Models/Translation.cs +++ b/idee5.Globalization/Models/Translation.cs @@ -3,7 +3,30 @@ /// /// The translation /// -/// Language id according to BCP 47 http://tools.ietf.org/html/bcp47 -/// Value of the resource for the specified culture and parlance -/// Additional information. Mostly used to create semantic context to simplify translations -public record Translation(string Language, string Value, string? Comment = null); +public record Translation { + /// + /// Create a new translation + /// + /// Language id according to BCP 47 http://tools.ietf.org/html/bcp47 + /// Value of the resource for the specified culture and parlance + /// Additional information. Mostly used to create semantic context to simplify translations + public Translation(string language, string value, string? comment = null) { + Language = language; + Value = value; + Comment = comment; + } + /// + /// Language id according to BCP 47 http://tools.ietf.org/html/bcp47 + /// + public string Language { get; set; } + + /// + /// Value of the resource for the specified culture and parlance + /// + public string Value { get; set; } + + /// + /// Additional information. Mostly used to create semantic context to simplify translations + /// + public string? Comment { get; set; } +} \ No newline at end of file diff --git a/idee5.Globalization/idee5.Globalization.csproj b/idee5.Globalization/idee5.Globalization.csproj index 2dd41b9..3d7f25b 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.5 + 3.5.6 idee5, Globalization, Localization Improved serialization support enable