Skip to content

Publish translations to /xx subdirectories#264

Merged
mgeisler merged 1 commit intogoogle:mainfrom
mgeisler:publish-translations
Jan 24, 2023
Merged

Publish translations to /xx subdirectories#264
mgeisler merged 1 commit intogoogle:mainfrom
mgeisler:publish-translations

Conversation

@mgeisler
Copy link
Collaborator

This publishes translations (currently only the Danish translation) to subdirectories named after the ISO 639-1 language code: “da/” for Danish, “ko/” for Korean, etc.

The list of translation is an explicit list to make it easy for us to enable/disable translations without being tied to the files in po/. This allows us to experiment with a translation without publishing it immediately.

I propose that we eventually move the English pages to an “en/” directory for symmetry with the other locales. However, for now, the pages remain at the room of our site (which works fine since we don’t have a subdirectory named “en/” in the course).

This publishes translations (currently only the Danish translation) to
subdirectories named after the ISO 639-1 language code: “da/” for
Danish, “ko/” for Korean, etc.

The list of translation is an explicit list to make it easy for us to
enable/disable translations without being tied to the files in po/.
This allows us to experiment with a translation without publishing it
immediately.

I propose that we eventually move the English pages to an “en/”
directory for symmetry with the other locales. However, for now, the
pages remain at the room of our site (which works fine since we don’t
have a subdirectory named “en/” in the course).
@mgeisler mgeisler requested a review from qwandor January 23, 2023 22:14
@mgeisler mgeisler merged commit bad5cc9 into google:main Jan 24, 2023
@mgeisler
Copy link
Collaborator Author

Thanks @qwandor, the very-incomplete Danish translation is now visible under https://google.github.io/comprehensive-rust/da/. @keispace, we can also publish the Korean translation now.

@mgeisler mgeisler deleted the publish-translations branch February 4, 2023 09:42
NoahDragon pushed a commit to wnghl/comprehensive-rust that referenced this pull request Jul 19, 2023
This publishes translations (currently only the Danish translation) to
subdirectories named after the ISO 639-1 language code: “da/” for
Danish, “ko/” for Korean, etc.

The list of translation is an explicit list to make it easy for us to
enable/disable translations without being tied to the files in po/.
This allows us to experiment with a translation without publishing it
immediately.

I propose that we eventually move the English pages to an “en/”
directory for symmetry with the other locales. However, for now, the
pages remain at the room of our site (which works fine since we don’t
have a subdirectory named “en/” in the course).
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