Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.43k stars 381 forks source link

Handle vanilla `-lang` and `-language` CLI flags for I18n #2754

Closed KawaiiYuyu closed 2 years ago

KawaiiYuyu commented 2 years ago

In most cases, user would use the same language for both Terraria and TShock if the language is officially supported by this game. So we can just use those 2 flags to configure the culture.

Even if a user really want to use different langs they can also use envvars to override it.

Arthri commented 2 years ago

TShock already supports this through envvars https://github.com/Pryaxis/TShock/blob/4985c168637a70d58a511bf58156b7ad5f09960b/TShockAPI/I18n.cs#L38

KawaiiYuyu commented 2 years ago

TShock already supports this through envvars

https://github.com/Pryaxis/TShock/blob/4985c168637a70d58a511bf58156b7ad5f09960b/TShockAPI/I18n.cs#L38

yep, but one need to set envvars and cli flags to change the whole server's language, I want to make it easier