tdwright / contabs

Simple yet flexible tables for console apps.
MIT License
54 stars 20 forks source link

Should we allow for the localisation culture to be specified? #57

Open tdwright opened 6 years ago

tdwright commented 6 years ago

Following on from #55, do we ever want to be able to explicitly specify the formatting culture a table (or column) should use when rendering values?

Approaches:

  1. Apply whatever localisation settings are provided by the system (current behaviour)
  2. Override the culture for the whole thread (a la CultureInfo.CurrentCulture, though not sure this works in .NET Core?)
  3. Allow a culture to be specified at the table level, which would be passed down to the formatters for each column
  4. Allow a culture to be specified on a per-column basis.

Keen to get some feedback on this. Anyone got any thoughts?