Skip to content

Internationalization (i18n) Support #300

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

Open
wants to merge 8 commits into
base: v2
Choose a base branch
from

Conversation

kelvin-hey
Copy link
Contributor

This pull request adds support for internationalization (i18n) to enable the site to display content in multiple languages. The translations were implemented using the Vue i18n plugin.

Information

1. Language Selector

A language selector has been added at the top of the page, along with the navigation bar.

Desktop

language_selector_desktop
language_selector_light_theme

Mobile

language_selector_mobile

2. Translation Limitations

The entire site has been translated, but a few elements could not be translated.

Text in Images

Some images contain embedded (non-textual) text, which has not been translated.

image_with_text

Licenses

The list of licenses has not been translated as many of the names are proper nouns.

licenses

Components on the Roadmap Page

Certain indicators could not be translated.

components_not_translated

Updates page

The Updates page could not be translated because its content is retrieved through API calls to another repository.

Page: https://vanillaos.org/updates

updates_page

Blog

The blog posts are not translated due to possible limitations of the Weblate free plan, as pointed out by @kbdharun

3. Weblate Configuration

The JSON file containing the translations is located in the locale folder. I added the Portuguese translation alongside the English one.

image

  • The JSON file has been successfully tested on Weblate.
  • For configuration, the JSON nested structure format must be used.

@kbdharun kbdharun self-assigned this Apr 29, 2025
@kbdharun kbdharun requested review from GabsEdits and mirkobrombin and removed request for GabsEdits April 29, 2025 05:21
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