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

Support for multilingual pages #53

Open
chucker opened this issue Oct 20, 2022 · 5 comments
Open

Support for multilingual pages #53

chucker opened this issue Oct 20, 2022 · 5 comments

Comments

@chucker
Copy link

chucker commented Oct 20, 2022

This will require some brainstorming.

Goal

Translating an entire wiki is probably impractical, but it should be possible for individual pages to be available in multiple languages.

Design idea

  • If a page is named My-Document.en-us.md instead of My-Document.md, consider that the US English version.
  • If this matches the browser's Accept-Language header, default to showing that.
  • If additional languages exist, show flags in the top right to switch to those, e.g. a German flag for My-Document.de-de.md.

Considerations:

  • will this suck to use in Azure DevOps itself?
  • how does the search know which language to filter for?
@ricardoboss
Copy link
Member

For the search: we could introduce multiple indexes, one for each language found in the sources. The API can then provide a way to select which languages to search.

@chucker
Copy link
Author

chucker commented Oct 20, 2022

Yes, but each language's index should also contain the fallback pages, where necessary.

@chucker
Copy link
Author

chucker commented Jun 26, 2023

I'm confused how this differs from #8. :)

@ricardoboss
Copy link
Member

You tell me, you're the author of both :D

@chucker
Copy link
Author

chucker commented Jun 26, 2023

I know 😂

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