ddc2ac84aaf8309209019c5b61af9faf64cbd29b
Run tests before updating metadata, and combine Git configuration, commit, and push into a single step. Validating the downloaded dictionary file immediately after change detection ensures tests fail-fast before metadata is modified or staged. Combining Git setup, commit, and push reduces workflow step clutter and avoids unnecessary Git configuration on runs with no changes.
cedict
An always up-to-date copy of the CC-CEDICT, a Chinese to English word dictionary with pronunciation in pinyin for the Chinese characters.
The original dictionary is available as a plain text file. In addition to that, this repository is a Go module, which allows for easy consumption of the dictionary bytes from a Go program.
package main
import (
"os"
"github.com/rhcarvalho/cedict"
)
func main() {
os.Stdout.Write(append(cedict.Bytes[:200], []byte("...\n")...))
}
The dictionary is automatically updated daily (if there are changes upstream).
License
The original CC-CEDICT by MDBG is licensed under CC BY-SA 4.0.
The remaining content of this repository is licensed under the Apache License 2.0.
Description
Always up-to-date copy of the CC-CEDICT, a Chinese to English dictionary
28 MiB
0 Stars
1 Watchers
0 Forks
Languages
Go
73.7%
Awk
26.3%
