dlbnco / tripby.org

Harm reduction info about psychoactive drugs with data provided by PsychonautWiki.org
https://tripby.org
23 stars 3 forks source link

Translations in Portuguese/Spanish #87

Open miguelzinhe opened 3 years ago

miguelzinhe commented 3 years ago

Feature request

Translations in Portuguese/Spanish can help a lot of people working with harm reduction informations.

PS: I can help with i18n!

dlbnco commented 3 years ago

@miglsoares

I agree! I believe there is multi-language support in PsychonautWiki (all data comes from there) but I don't think they are exposed to the API.

Our messages though are already structured which makes it easier to translate and implement i18n:

https://github.com/dlbnco/tripby.org/blob/develop/components/IntlProvider/messages.js

miguelzinhe commented 3 years ago

Actually, I didn't find anything about multi-language support, maybe I contact PsychonautWiki to know more Infos!

Thank you for your answer! :heart:

gruberdev commented 3 years ago

@miglsoares

I agree! I believe there is multi-language support in PsychonautWiki (all data comes from there) but I don't think they are exposed to the API.

Our messages though are already structured which makes it easier to translate and implement i18n:

https://github.com/dlbnco/tripby.org/blob/develop/components/IntlProvider/messages.js

The API has a repository here on Github, an issue asking for the possibility of multiple languages should be a reasonable objective for a wiki-like website focused on aggregating accessible information. I'll look into PsychonautWiki To-do list and their API respectively and create an issue tagging you. Meanwhile, there are plugins that allow for automatic translation of JS API's, but I haven't researched them in-depth yet, which could provide a temporary hotfix.