As example, this dictionary filled with English-Indonesia words definition.
You can modify it’s source code to fit your needs in creating a simple dictionary app.
It has basic features such as:
- Displaying word list based on alphabetical order from A to Z, both in two mode English-Indonesia and Indonesia-English.
- Quick find ability to search for contents immediately by typing in the search box.
- Responsive design.
Words and definitions are stored in a file called db.js. You can modify it’s content, for example change te value of “en” into something in a language (Spanish, etc.) and also change the value of “id” into its translation.
Below if a part of codes inside db.js:
var definitions = [
Note: You don’t need to change the key names (en, id), just change its values. Otherwise you have to change another part of the codes related to it.
Get the source code from GitHub: https://github.com/habibieamrullah/Simple-JS-Dictionary
Do you like this post? Consider a donation 😀