Skip to content

Add Weblate integration for translation downloads#3

Draft
Copilot wants to merge 6 commits into
masterfrom
copilot/add-downloaded-version
Draft

Add Weblate integration for translation downloads#3
Copilot wants to merge 6 commits into
masterfrom
copilot/add-downloaded-version

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 1, 2026

Implements Weblate API integration to enable downloading translations for Android string resources.

Changes

Download Scripts

  • download-translations.py - Fetches translations via Weblate API with language code conversion (pt-br → pt-rBR)
  • download-translations.sh - Bash alternative with same functionality
  • Both support custom Weblate hosts and project configurations

Configuration & Automation

  • .weblate - Project configuration for Weblate component setup
  • .github/workflows/update-translations.yml - Weekly automated downloads with PR creation

Documentation

  • WEBLATE.md - Setup guide covering API authentication, project configuration, troubleshooting
  • QUICKSTART.md - Essential commands and common workflows
  • Updated README.md with translation section

Example Structure

  • Added values-es/ and values-fr/ directories with placeholder strings.xml files

Usage

export WEBLATE_TOKEN='your-api-token'
python3 download-translations.py

For custom configurations:

python3 download-translations.py \
  --host https://your-weblate.org \
  --project your-project \
  --component android-strings

Notes

  • Language code conversion handles both uppercase and lowercase variants (pt-BR, pt-br both → pt-rBR)
  • Complex language codes (zh-Hans-CN) preserved as-is with warning
  • Scripts gracefully handle missing API tokens and non-existent translation files
Original prompt

Create a downloaded version on weblate.org/?momtiai


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 1, 2026 03:48
Co-authored-by: montinode <258148236+montinode@users.noreply.github.com>
Co-authored-by: montinode <258148236+montinode@users.noreply.github.com>
Copilot AI and others added 3 commits February 1, 2026 03:54
Co-authored-by: montinode <258148236+montinode@users.noreply.github.com>
… checks

Co-authored-by: montinode <258148236+montinode@users.noreply.github.com>
…dd documentation

Co-authored-by: montinode <258148236+montinode@users.noreply.github.com>
Copilot AI changed the title [WIP] Add downloaded version feature on weblate.org Add Weblate integration for translation downloads Feb 1, 2026
Copilot AI requested a review from montinode February 1, 2026 03:59
Copy link
Copy Markdown
Owner

@montinode montinode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A⃨p⃨p⃨r⃨o⃨v⃨e⃨d⃨ B⃨y⃨ J⃨O⃨H⃨N⃨C⃨H⃨A⃨R⃨L⃨E⃨S⃨M⃨O⃨N⃨T⃨I⃨

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