Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 23, 2025

This PR adds support for Catalan language (català) to Easydict, addressing the request from users in Barcelona and other Catalan-speaking regions.

Changes Made

Core Language System

  • Added EZLanguageCatalan constant with full language model implementation
  • Chinese name: "加泰罗尼亚语" (official Chinese translation)
  • Native name: "Català" (proper Catalan spelling with Unicode support)
  • Language code: "ca" (ISO 639-1/BCP-47 standard)
  • Voice locale identifier: "ca_ES" (Catalan in Spain)
  • Flag emoji: 🏛️ (diplomatically neutral cultural symbol)

Translation Services

  • Google Translate: Added Catalan support with language code "ca"
  • Bing/Microsoft Translate: Added Catalan support with language code "ca"
  • Other services not modified as they don't support Catalan according to their official documentation

Documentation Updates

  • Updated total supported language count from 48/50 to 52 languages
  • Added Catalan to language support tables in both Chinese (README.md) and English (README_EN.md) documentation
  • Updated all language count references throughout the codebase

Language Support Matrix

Service Catalan Support
Google Translate
Bing/Microsoft Translate
Youdao
DeepL
Apple Translate
Baidu
Volcano

Implementation Details

The implementation follows the established patterns in the codebase:

  • Consistent with existing language model structure
  • Proper Objective-C memory management
  • Swift compatibility maintained through existing bridging
  • No breaking changes to existing APIs

Testing

  • Created comprehensive test script to verify all changes
  • All language references properly added to core language system
  • Translation services correctly include Catalan mappings
  • Documentation consistently updated across all files

Users can now select Catalan as a source or target language in the language picker and use it with Google Translate and Bing translation services.

Fixes #987.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Contributor Author

Copilot AI commented Sep 23, 2025

@tisfeng 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Copilot AI and others added 2 commits September 23, 2025 01:07
…vices

Co-authored-by: tisfeng <25194972+tisfeng@users.noreply.github.com>
Co-authored-by: tisfeng <25194972+tisfeng@users.noreply.github.com>
Copilot AI changed the title [WIP] 加泰罗尼亚语 西班牙巴塞罗那语言 无法添加 Add Catalan language support (加泰罗尼亚语) Sep 23, 2025
Copilot AI requested a review from tisfeng September 23, 2025 01:15
@tisfeng tisfeng changed the base branch from main to dev September 28, 2025 15:38
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