-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(de): launch German translation experiment (#12033)
We launched the German locale as a public preview on a separate test environment [1] in October 2024, and the next step is to expose the locale to more users by launching it as an experiment on production in November 2024, with the following constraints: [1] https://github.com/orgs/mdn/discussions/741 1. The locale should not be indexed by search engines. 2. The locale should be clearly marked as experimental and machine translated. This commit includes the following changes: 1. The {stage,prod}-build workflows are updated to build `de` by checking out `mdn/translated-content-de` and moving the `files/de` folder into `mdn/translated-content`. - _Caveats_: This prevents `sync-translated-content` on `de`, and `tool gather-git-history` from fetching `de` history, but that's acceptable. 2. German translations are added in various places: - in the baseline indicator (in terms of the of the BCD section id), - the indicator for `en-US` links (in case of pages without translations), - the disclaimer at the top of every page about the locale being experimental and automatically translated, - the TOC header ("In this article"), - the article footer ("Help improve MDN"), and - macros (especially sidebars). 3. A short survey is added that is shown on all `/de/docs/` pages, when navigating from another `/de/docs/` page. - _Related_: For this survey, the `src` field now supports a callback to create the survey URL dynamically in order to pass the current MDN page's URL as a hidden survey parameter. 4. Special treatment for German is added in two places: - in the `client`, the repo `translated-content` is manually replaced by `translated-content-de`, - during SSR, the robots value is set to `"noindex, follow"` to prevent search engines from indexing the pages.
- Loading branch information
Showing
54 changed files
with
1,063 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.