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

Add localization plugin and initial es translation #1011

Merged
merged 8 commits into from
Feb 27, 2025

Conversation

coppolaemilio
Copy link
Member

@coppolaemilio coppolaemilio commented Feb 17, 2025

I've started adding localization support directly in Jekyll but with a custom made plugin.
Initially, the idea was to transition the website to Hugo because of how long it is taking to build from scratch and the existing localization plugins duplicating every collection item for each language. So the current plan now is to just translate the main pages to other languages and keep the posts in English (as it is highly unlikely that we'll ever translate blogposts).

With this new method, we don't need to port the website to Hugo, and we can keep the localized pages to only the ones that we care about without adding a significant increase time in builds.

The current proof of concept is translating part of the home page to Spanish, but there are a few things missing from the localization that should be addressed in further commits to this PR or in future ones.

The localization files are currently .yml files at /_i18n

ES version of the site:
image

The to-do items currently are:

  • Add fallback to default language if translation is missing
  • Add support for localized items in the front matter (such as title, or meta tags)
  • Add a language picker
  • Decide if we want to redirect automatically to localized pages or not on first visit

Closes #814

@coppolaemilio coppolaemilio added topic:backend Issues and PRs related to the backend and the build system topic:content Issues and PRs related to static content labels Feb 17, 2025
@coppolaemilio coppolaemilio changed the title Add plugin and initial es translation Add localization plugin and initial es translation Feb 17, 2025
@coppolaemilio coppolaemilio merged commit bf79f99 into master Feb 27, 2025
1 check passed
@Calinou Calinou mentioned this pull request Feb 27, 2025
paddy-exe added a commit to paddy-exe/godot-website that referenced this pull request Feb 28, 2025
Based on the localization support from
godotengine#1011
paddy-exe added a commit to paddy-exe/godot-website that referenced this pull request Feb 28, 2025
Based on the localization support from
godotengine#1011
@coppolaemilio coppolaemilio deleted the localization-support branch February 28, 2025 11:07
paddy-exe added a commit to paddy-exe/godot-website that referenced this pull request Feb 28, 2025
Based on the localization support from
godotengine#1011

First feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:backend Issues and PRs related to the backend and the build system topic:content Issues and PRs related to static content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internationalize the website
1 participant