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

Add Catalan Language Support

Open Ricard-Garcia opened this issue 1 year ago • 2 comments

Increasing Access

I would like to suggest adding support to catalan in the website. Catalan is spoken by over 10 million people in various regions, including Catalonia, the Balearic Islands, and Valencia, among others. Since the main goal of the library is to make it accessible beyond any cultural border (amongst other) I think by including catalan, p5.js can reach a broader audience and support the inclusion of Catalan-speaking creators in the global creative coding community.

Most appropriate sub-area of p5.js?

Other (specify if possible)

Feature request details

Proposal

  • Add Catalan (ca) as a supported language in the localisation files in the website repository.
  • Translate the existing interface strings, documentation, and error messages to catalan.

Implementation

  • I can help contribute the initial translation or work with others in the community to ensure accurate translations.
  • Update the language selection menu to include Catalan.

References

Catalan overview

Thank you for considering this suggestion. I would be more than happy if you take this issue so that catalan community can benefit from this new feature in the website and, who knows, maybe in the library in the future.

Ricard-Garcia avatar Sep 03 '24 18:09 Ricard-Garcia

I can contribute with the translation!

flors avatar Sep 05 '24 09:09 flors

@Ricard-Garcia One way to quickly do this job.

Take https://raw.githubusercontent.com/processing/p5.js-website/refs/heads/main/src/content/examples/en/01_Shapes_And_Color/00_Shape_Primitives/description.mdx as an example.

use translate md into Catalan language as prompt, copy paste the markdown into LLM like

  • https://chatgpt.com/
  • https://aistudio.google.com/prompts/new_chat
  • https://claude.ai/

and many more. And check the result.

below is an example, I don't know Catalan so I can't check it though.

---
featuredImage: "../../../images/featured/01_Shapes_And_Color-00_Shape_Primitives-thumbnail.png"
featuredImageAlt: Unes quantes formes bàsiques dibuixades en blanc i negre sobre un fons gris.
title: Primitives de Forma
oneLineDescription: Dibuixa formes 2D.
relatedReference:
  - ca/p5/arc
  - ca/p5/ellipse
---

Aquest programa demostra l'ús de les funcions primitives de forma bàsiques
<a href="https://p5js.org/reference/p5/square" target="_blank">square()</a>,
<a href="https://p5js.org/reference/p5/rect" target="_blank">rect()</a>,
<a href="https://p5js.org/reference/p5/ellipse" target="_blank">ellipse()</a>,
<a href="https://p5js.org/reference/p5/circle" target="_blank">circle()</a>,
<a href="https://p5js.org/reference/p5/arc" target="_blank">arc()</a>,
<a href="https://p5js.org/reference/p5/line" target="_blank">line()</a>,
<a href="https://p5js.org/reference/p5/triangle" target="_blank">triangle()</a>,
i <a href="https://p5js.org/reference/p5/quad" target="_blank">quad()</a>.

asukaminato0721 avatar Oct 20 '24 18:10 asukaminato0721