Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle tutorials in languages other than English? #534

Open
kelle opened this issue Jan 20, 2022 · 1 comment
Open

How to handle tutorials in languages other than English? #534

kelle opened this issue Jan 20, 2022 · 1 comment

Comments

@kelle
Copy link
Member

kelle commented Jan 20, 2022

We are already getting contributions in Brazilian Portguese and could imagine wanting to translate the tutorials into Spanish. How do we want to handle this? Potentially adding a new label category for language. Default would be to show the English tutorials but the availability of other languages would be visible.

From the notes:

  • Models
    • One model: Each tutorial has a language tag, and people can filter in the search. If search for English and Portuguese, would get some duplicates.
    • Alternative: Have tutorials in language code subdirectories, default is /en/, but others live in e.g., learn.astropy.org/tutorials/pt_br/tutorial-name.ipynb, and have the site actually translated into a users preferred language based on HTML localization
    • Or: Have tutorials all live in the same directory, and use language suffixes to filenames, like tutorial-name.en.ipynb, tutorial-name.pt_br.ipynb, etc. – this would alleviate any relative path issues for data files that tutorial notebooks depend on
  • ISO language codes are relevant
  • Algolia may have support for language codes already, so @jonathansick will investigate

Practical questions / decisions to make:

  • How do we review translated tutorials?
  • What is our policy for updating them when the “parent” English tutorial is translated?
  • Do we accept new tutorials in non-English languages (without English counterparts)?
@pllim
Copy link
Member

pllim commented Jan 21, 2022

Definitely need someone on the tutorial team to vet any translated languages. For instance, if someone starts to contribute in Chinese but we do not have anyone fluent in written Chinese, then what do you do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants