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

Localization support #9

Open
Lordmau5 opened this issue Mar 13, 2023 · 1 comment
Open

Localization support #9

Lordmau5 opened this issue Mar 13, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Lordmau5
Copy link
Member

Lordmau5 commented Mar 13, 2023

Right now the UI only supports English, both ingame and for stream chats (or Twitch polls).

A rough first idea would probably be to have a native en_US.json file packaged with the executable so it can always be read.

Then allow loading an overwrite file which will take priority for the strings if they're present, so it doesn't actually have to be the WHOLE file.

Additionally, allowing effects to be different for the UI, ingame and stream (e.g. Twitch chat and polls) is good, too.

Something like

{
	"effects": {
		"infinite_ammo": {
			"game": "Infinite Ammo",
			"ui": "Infinite Ammo",
			"stream": "Infinite Ammo"
		},
		"hold_the_f_up": {
			"game": "Hold The F Up...",
			"ui": "Hold The F Up...",
			"stream": "Hold The F*** Up..."
		},
	}
}
@Lordmau5 Lordmau5 added enhancement New feature or request help wanted Extra attention is needed labels Mar 13, 2023
@gromchek
Copy link

A rough first idea would probably be to have a native en_US.json file packaged with the executable so it can always be read.

It would be a simple solution and easy to contribute.
Something like a key-value file where key is GUI tool localization key and value is translated string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants