Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load game's language earlier for translation #938

Open
Tenebrosful opened this issue Mar 23, 2024 · 0 comments
Open

Load game's language earlier for translation #938

Tenebrosful opened this issue Mar 23, 2024 · 0 comments

Comments

@Tenebrosful
Copy link

Tenebrosful commented Mar 23, 2024

Describe the bug
It looks like that Helper.Translation.LocaleEnum is equal to en until a long time, making for exemple not possible to use localization for SMAPI commands description for exemple or other direct use of localized strings in Entry. I don't know if it's possible but it could be nice that game language is load before Entry

To Reproduce
Exact steps which reproduce the bug, if possible. For example:

  1. Use any direct use localized String in Entry

Exemple:

Helper.ConsoleCommands.Add("DiscordReload",
  Helper.Translation.Get("command.discordreload.desc"), //<-- LocaleEnum = en (beside having game in french)
  (string command, string[] args) => {
    LoadConfig();
  }
);

Log file
https://smapi.io/log/bdc70289233748a0b7468445d04e3159?Mods=SMAPI~RichPresence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant