You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got a Dictionary, with an enum as a key and a string as value (for my i18n) here is an example project I'd like to make working https://dotnetfiddle.net/XS8DBo
Is it possible to have a Type converter that will append a comment after the KeyPairValue's value
I tried to simply make a type converter for my Enum, but it does not work, it simply breaks the YAML cause it's appended after the Key
You are emitting the comment after the key, that's why it gets in between the key and the : indicator. You would need to have a converter to the value instead of the key, or perhaps a converter for the dictionary would be simpler.
Hi,
I'm using your library to generate my I18n translations right here : https://github.com/NosWings/NosWings.Server.Translations
I got a Dictionary, with an enum as a key and a string as value (for my i18n)
here is an example project I'd like to make working
https://dotnetfiddle.net/XS8DBo
Is it possible to have a Type converter that will append a comment after the KeyPairValue's value
I tried to simply make a type converter for my Enum, but it does not work, it simply breaks the YAML cause it's appended after the Key
Expected :
Result with only my enum TypeConverter :
My BrokenEnumTypeConverter
Thanks by advance.
The text was updated successfully, but these errors were encountered: