Don't lower case enums or bools

Why
This commit is contained in:
Pieter-Jan Briers
2022-05-16 00:53:02 +02:00
parent 54f3e3affc
commit 2f825347c3

View File

@@ -259,7 +259,7 @@ namespace Robust.Shared.Localization
EntityUid entity => new FluentLocWrapperType(new LocValueEntity(entity)),
DateTime dateTime => new FluentLocWrapperType(new LocValueDateTime(dateTime)),
TimeSpan timeSpan => new FluentLocWrapperType(new LocValueTimeSpan(timeSpan)),
bool or Enum => (FluentString)obj.ToString()!.ToLowerInvariant(),
bool or Enum => (FluentString)obj.ToString()!,
string str => (FluentString)str,
byte num => (FluentNumber)num,
sbyte num => (FluentNumber)num,