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

Wrong language is shown in the console. #3145

Open
panna3 opened this issue Jun 4, 2024 · 6 comments
Open

Wrong language is shown in the console. #3145

panna3 opened this issue Jun 4, 2024 · 6 comments
Labels

Comments

@panna3
Copy link

panna3 commented Jun 4, 2024

p5.js version

v1.9.4

What is your operating system?

Windows

Web browser and version

chrome 125.0.6422.113

Actual Behavior

Japanese language shows in the console panel when I'm setting the language as English.
I have tried to set OS language as English but still shows Japanese in the console.

Expected Behavior

lang
aa

Steps to reproduce

Steps:

  1. select English from the top right on the editor.
  2. type any wrong code e.g aa in the draw function.

Snippet:

// Paste your code here :)
function setup() {
  createCanvas(400, 400);
}

function draw() {
  background(220);
  aa
}
@panna3 panna3 added the Bug label Jun 4, 2024
Copy link

welcome bot commented Jun 4, 2024

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@panna3
Copy link
Author

panna3 commented Jun 4, 2024

I just set English for #1 priority in the Chrome setting now it shows English.

@Chaitanya1672
Copy link
Contributor

I am not able to reproduce bug
for me it is showing below error
image

@panna3
Copy link
Author

panna3 commented Jun 9, 2024

  1. go to chrome setting
  2. select language
  3. select priority language to non English
  4. open p5.js editor
  5. type aa in draw function
  6. press > to execute

I have attached a video

bug.mp4

I am not sure if this is even a bug but it was working fine w/o language priority setting until recently.

@limzykenneth
Copy link
Member

For a bit of context, the FES error messages localization works by reading the language your browser is set to (this is part of the library FES feature). With a high priority Japanese set, it will read that the browser is set to Japanese. I'm not sure if it is possible for the iframe to be set to a different language than the browser itself though.

@panna3
Copy link
Author

panna3 commented Jun 23, 2024

It just happened recently. I did not have to change browser setting before.

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

No branches or pull requests

3 participants