Open catarak opened 3 years ago
@catarak I got started on this issue but am not too sure how translations work -- having descriptions in different languages is a great idea!
I think I should read up on i18next and figure out how to apply it along the lines of the following snippet.
import i18next from 'i18next';
const description = i18next.t('DefaultSketch.Description');
const defaultSketch = `function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
describe('${description}');
}`;
Does that seem like a route forward? Happy to test with /translations/locales/es-419/translations.json
.
hey @raclim is this issue still open to work as there is one PR
hey @raclim can you please describe about this issue more as It is not clear from above discussion what is exactly required
Thanks @parteekcoder for your interest in working on it. Let's revisit this issue after the describe() guideline is completed in processing/p5.js#6387
Nature of issue?
New feature details:
As suggested in https://github.com/processing/p5.js/issues/5427, adding
describe()
would hopefully encourage folks to add a description to their sketches. We could also think about having different descriptions for each of the different translations.