feat(i18n): add Brazilian Portuguese translations for all exercises - #64
feat(i18n): add Brazilian Portuguese translations for all exercises#64dverzolla wants to merge 2 commits into
Conversation
- Add Brazilian Portuguese (pt) translations for instructions and instruction_steps across all exercises in data/exercises.json.
- Update the schema in data/exercises.schema.json to support the new pt language code.
- Update index.html to add pt ('Português') to LANG_LABELS and langs, and include the translated data in the static EXERCISES array.
|
I have open a pull request to add PT-PT (portugal portuguese), but ideally is to have two keys:
if you have suggestions, I'm ok to do it! |
we could definitely have 2 distinct language keys |
Would you mind do work on merging both PRs? |
I will do it! I will add your translations on my PR with |
sure! |
Merge PT-BR translations contributed by @dverzolla (upstream PR hasaneyldrm#64) under the ptBr key, keeping pt for European Portuguese. - Add ptBr to instructions and instruction_steps for all 1324 exercises - Add ptBr to data/exercises.schema.json (languageMap + languageStepsMap) - Add ptBr to index.html language switcher and regenerate inline data
|
@hfabio @dverzolla — done! I've merged both translations into #66 using two separate keys:
The @dverzolla shout if you'd rather be credited a different way. If this looks good to everyone, we can close #64 in favor of #66. |
Amazing, man! thank you! |
Description
This pull request adds Brazilian Portuguese (
pt) translations for all exercises in the dataset, allowing Portuguese-speaking users to view exercise instructions and steps in their native language.Changes
pttranslations for bothinstructionsandinstruction_stepsof all exercises in data/exercises.json.ptlanguage code properties.pt('Português') to the list of available languages (LANG_LABELSandlangs) and updated the staticEXERCISESlist with the translated data.Verification