processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.08k stars 3.22k forks source link

getting wrong language in the console. #7080

Open panna3 opened 3 weeks ago

panna3 commented 3 weeks ago

Most appropriate sub-area of p5.js?

p5.js version

v1.9.4

Web browser and version

chrome 125.0.6422.113

Operating system

Windows 11

Steps to reproduce this

Steps:

  1. copy my code
  2. paste code in the editor
  3. see the different language in the console rather than English (probably OS language) language2

Snippet:



// Paste your code here :)

let letters;
function setup() {
  createCanvas(400, 400);
  letters = "Panna";
}

function draw() {
  background(220);
  let x = width/2;
  let y = height/2;
  let space = 10;
  letters.split("");
  for(let i =0;i<letters.length;i++){
    console.log(letters[i]);
    text(letters[i],x+space,y,letters.x,letters.y);
  }
}
welcome[bot] commented 3 weeks ago

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

Vishal2002 commented 3 weeks ago

I think you should raise this issue in the p5.js web editor repo. Also can you describe the problem correctly?

panna3 commented 3 weeks ago

Any mistakes in the code shows Japanese language in the console even after I changed OS language setting to English. lang

panna3 commented 3 weeks ago

I opened this in the p5.js web editor repo.

limzykenneth commented 4 days ago

I'll close this in favor of the issue open in the web editor repo. Thanks @panna3, do let us know if you notice this outside of the editor as well then it may be something for the library to fix.

limzykenneth commented 4 days ago

Actually now that I thought about it, there probably should be a way to manually change the FES language if needed. I'll reopen this for possibly implementing something like that.

Faisal-imtiyaz123 commented 2 days ago

@limzykenneth can I work on this?

limzykenneth commented 2 days ago

@Faisal-imtiyaz123 Sure but before writing any code and setting up a PR, can you share the implementation idea you have for this?

Faisal-imtiyaz123 commented 2 days ago

@limzykenneth Thanks for the prompt response. Let me dig deeper in the issue and let you know.