p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

getting wrong language in the console.

Open panna3 opened this issue 1 year ago • 9 comments

Most appropriate sub-area of p5.js?

  • [ ] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [ ] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Build process
  • [ ] Unit testing
  • [X] Internationalization
  • [ ] Friendly errors
  • [ ] Other (specify if possible)

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);
  }
}

panna3 avatar Jun 01 '24 04:06 panna3

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!

welcome[bot] avatar Jun 01 '24 04:06 welcome[bot]

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

Vishal2002 avatar Jun 02 '24 10:06 Vishal2002

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

panna3 avatar Jun 04 '24 12:06 panna3

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

panna3 avatar Jun 04 '24 13:06 panna3

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 avatar Jun 22 '24 15:06 limzykenneth

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.

limzykenneth avatar Jun 22 '24 16:06 limzykenneth

@limzykenneth can I work on this?

Faisal-imtiyaz123 avatar Jun 24 '24 06:06 Faisal-imtiyaz123

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

limzykenneth avatar Jun 24 '24 12:06 limzykenneth

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

Faisal-imtiyaz123 avatar Jun 24 '24 13:06 Faisal-imtiyaz123