Skip to content

Spanish (non-English) language support #54

@rahji

Description

@rahji

I will preface this by saying I don't speak/read/write Spanish (yet): 😂

I was inspired by Quinton's addition of Spanish language coding to q5.js (an arguably better-but-compatible p5.js): https://q5js.substack.com/p/code-in-spanish-with-q5js

I'm interested in adding this to Runal because I feel like it challenges the idea that everyone should be writing code in English. Also, I'm interested in the potential of teaching abroad again next year 🙏🏽 and I think a creative coding class in which students code in Spanish would be a great art class that also serves American students learning Spanish.

Anyway, I think this is only relevant to the CLI/javascript, so it seems like the package could remain untouched and the CLI could intercept calls as it's evaluating the javascript and map the function names like:

funcMap := map[string]string{
    "círculo": "circle",
    "triángulo": "triangle",
    // etc
}

// then...
if enFunc, ok := funcMap[spanishFunc]; ok {
    // call the enFunc
}

We could steal the function names from q5 since I think they probably completely overlap.

Of course the other half is having Spanish documentation, which could maybe start with what q5 has but could be edited/verified/adapted by getting a bit of help from a Spanish-speaker. (I may be able to find an interested student researcher at some point)

If we do it as above, adding French and other languages should be trivial and won't cause extra overhead for the Go package.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions