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

Added way for translation links to be page-specific #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gjvnq
Copy link
Contributor

@gjvnq gjvnq commented May 30, 2022

Added file translation-links.json which specifies equivalent pages across translations.

So a page like /en/what-is-gender can send the user to /es/que-es-genero when the user clicks on the Spanish language link.

@ErdaradunGaztea
Copy link
Contributor

Hmm, the only problem I can think of is that all translation-related data is supposed to be stored inside separate folders for each language. I'm more of a R/Python girl, so how feasible would it be to implement in JS something like that?

  • Each language has a translation-links.json file with a list of "TAG": "/xx/filename" entries.
  • These files are combined into a map during build process, probably similar to the existing one.

Also edited public/*/_strings.js so they all show
the strings in the same order.
@gjvnq
Copy link
Contributor Author

gjvnq commented May 30, 2022 via email

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

Successfully merging this pull request may close these issues.

2 participants