Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Nov 7, 2024
1 parent 9b91767 commit 331157a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public override bool Equals(FluidValue other)

public override object ToObjectValue() => ToStringValue();

public override string ToStringValue() => _culture.Name;
public override string ToStringValue() => CultureInfo.CurrentUICulture.Name;

#pragma warning disable CS0672 // Member overrides obsolete member
public override void WriteTo(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
#pragma warning restore CS0672 // Member overrides obsolete member
=> writer.Write(ToStringValue());

public async override ValueTask WriteToAsync(TextWriter writer, TextEncoder encoder, CultureInfo cultureInfo)
=> await writer.WriteAsync(ToStringValue());
=> await writer.WriteAsync(CultureInfo.CurrentUICulture.Name);

protected override FluidValue GetValue(string name, TemplateContext context)
=> name switch
Expand Down

0 comments on commit 331157a

Please sign in to comment.