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

Game is crashing from "textStrings" variable #44

Open
WillYuum opened this issue Jun 18, 2022 · 1 comment
Open

Game is crashing from "textStrings" variable #44

WillYuum opened this issue Jun 18, 2022 · 1 comment

Comments

@WillYuum
Copy link

WillYuum commented Jun 18, 2022

Game is crashing with this error:

Error: Scene_Preloader.js:49 Uncaught ReferenceError: textStrings is not defined

This issue is happening because textStrings doesn't even exist in code base and the game is trying to access it since it has multiple languages.

This issue should be fixed in this Pull Request.

Until the Pull Request can be merged you can add this at the bottom of the folder: textStrings.js

const textStrings = (() => {
	switch (navigator.language) {
		case "en-US":
			return textStrings_EN;
		case "da":
			return textStrings_DA;
		case "fa":
			return textStrings_FA;
		case "pt-pt":
			return textStrings_PT;
		case "pt-BR":
			return textStrings_PT_BR;
		case "es":
			return textStrings_ES;
		default:
			return textStrings_EN;
	}
}
)();
@sponege
Copy link

sponege commented Jul 29, 2023

I have the same issue all the way in 2023

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

2 participants