Skip to content

Commit

Permalink
refactor: use stronlgy package
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorvenK committed Feb 28, 2024
1 parent cbb1610 commit 61514db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StronglyTypedId" Version="1.0.0-beta07" />
<PackageReference Include="Strongly" Version="1.5.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using StronglyTypedIds;
using Strongly;

namespace Ashampoo.Translation.Systems.Formats.Abstractions.Models;

/// <summary>
/// Represents a strongly typed identifier for a language.
/// </summary>
[StronglyTypedId(Template.String)]
[Strongly(StronglyType.String, StronglyConverter.SystemTextJson, StronglyImplementations.IEquatable |StronglyImplementations.Parsable)]
public readonly partial struct Language;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private async Task<bool> ConfigureOptionsAsync(FormatReadOptions? options)
}
else
{
Header.TargetLanguage = (Language)options.TargetLanguage!;
Header.TargetLanguage = options.TargetLanguage!;
}

return true;
Expand Down

0 comments on commit 61514db

Please sign in to comment.