Add Mandarin (zh) language support

Add CC-CEDICT loader and Wiktionary Chinese as data sources for
Mandarin. Also fix all Wiktionary download sections to retain
compressed archives and save checksums for integrity verification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
prosolis
2026-03-30 17:20:14 -07:00
parent eeea8d4d34
commit 5b1eea67f2
5 changed files with 323 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ var (
ErrNotSeeded = errors.New("dictionary: database not seeded, run: go run ./cmd/dictimport")
)
var supportedLangs = []string{"en", "fr", "pt-PT"}
var supportedLangs = []string{"en", "fr", "pt-PT", "zh"}
func ValidLang(lang string) bool {
for _, l := range supportedLangs {