Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Add a "Translate this Doc" link to docs footer #867

@zeke

Description

@zeke

At the bottom of each doc page, we have these links:

screen shot 2017-11-17 at 3 30 28 pm

We should add another that says "Translate this Doc".

If the visitor's locale is the default English (US, Canadian, or otherwise), one of the following should happen:

a) link to Crowdin project landing page. This is very easy to implement but is not the best UX, as the person has to then pick a target language and re-navigate to the file in question:

b) display a modal (or a new page, or a <select> element) that prompts for desired target langauge, then redirects to the Crowdin page for that language/filename pair on Crowdin.

If the visitor's locale is not the default, clicking "Translate this Doc" should take them straight to their language/filename pair on Crowdin. 🎯

I've created a module get-crowdin-file-ids that we weave into the output of the electron-i18n module, so we generate these "straight to the right translation page" URLs from the website.

Metadata

Metadata

Assignees

Labels

area:docsIssues or Pull Requests related to /docs page on websitearea:i18nIssues or Pull Requests related to i18nenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions