Ah yes, great idea. I hate databases, so they were out of my mind
Anyway, I pushed a new release which uses a SQLite database. Depending on the query search is faster now. But even if it is slower sometimes, I think the database solution is much better.
I used some regular expressions to parse the dict.cc dictionary and put it into a json file for later usage.
Have a look: http://www.alfredforum.com/topic/8638-dictcc-offline-translator/
I coded a little workflow for translation that is powered by dict.cc. I saw this workflow over here http://www.alfredforum.com/topic/8286-dictcc-translate-english-to-german/ and there was some demand for another one that works offline. So here it is:
Features:
Offline translation with dictionaries powered by dict.cc
Highly flexible, integrate as many language packs as you want
Easy to setup
A little bit hidden features:
Copy the translated word to the clipboard by actioning it
Copy the word in the origin language to the clipboard by actioning it with cmd as modifier
I tried to make the setup progress as simple as possible. Unfortunately you are not allowed to distribute the offline files, which are provided by dict.cc. But some of them are also very huge, so it is unexpedient too.
You can see here how to configure this workflow:
https://github.com/Kavakuo/Dict.cc-Alfred-Workflow#installation
You can download the workflow from the Github Releases page or from packal.org:
http://www.packal.org/workflow/dictcc-alfred
Here it is in action: