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

getting wrong language in the console. #7080

Open
1 of 17 tasks
panna3 opened this issue Jun 1, 2024 · 9 comments
Open
1 of 17 tasks

getting wrong language in the console. #7080

panna3 opened this issue Jun 1, 2024 · 9 comments
Labels
Bug Internationalization Relates to 'src/core/internationalization.js'

Comments

@panna3
Copy link

panna3 commented Jun 1, 2024

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
  • 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 panna3 added the Bug label Jun 1, 2024
Copy link

welcome bot commented Jun 1, 2024

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!

@github-actions github-actions bot added the Internationalization Relates to 'src/core/internationalization.js' label Jun 1, 2024
@Vishal2002
Copy link
Contributor

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

@panna3
Copy link
Author

panna3 commented Jun 4, 2024

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

@panna3
Copy link
Author

panna3 commented Jun 4, 2024

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

@limzykenneth
Copy link
Member

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
Copy link
Member

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 limzykenneth reopened this Jun 22, 2024
@Faisal-imtiyaz123
Copy link

@limzykenneth can I work on this?

@limzykenneth
Copy link
Member

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Internationalization Relates to 'src/core/internationalization.js'
Projects
None yet
Development

No branches or pull requests

4 participants