Skip to content

getting wrong language in the console. #7080

Open
@panna3

Description

@panna3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions