p5.js
p5.js copied to clipboard
getting wrong language in the console.
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:
- copy my code
- paste code in the editor
- see the different language in the console rather than English (probably OS language)
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! 👋 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!
I think you should raise this issue in the p5.js web editor repo. Also can you describe the problem correctly?
Any mistakes in the code shows Japanese language in the console even after I changed OS language setting to English.
I opened this in the p5.js web editor repo.
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.
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 can I work on this?
@Faisal-imtiyaz123 Sure but before writing any code and setting up a PR, can you share the implementation idea you have for this?
@limzykenneth Thanks for the prompt response. Let me dig deeper in the issue and let you know.