Skip to content

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

Open
gjvnq wants to merge 2 commits intoGenderDysphoria:masterfrom
gjvnq:translation-links
Open

Added way for translation links to be page-specific#98
gjvnq wants to merge 2 commits intoGenderDysphoria:masterfrom
gjvnq:translation-links

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