This is the new LingoLearn Repository, since the other one was getting very complicated due to the name change. The only remains of germanHelper are the 2 APIs whose triggers are both called "germanTranslation"
An App which lets you add language vocabulary words and converts them to english, gives you example sentences in both languages and tests you
API Documentation
There are 2 APIs, the main one which is called by the app, and then a scrapper API.
The main API uses a 3rd Party Linguee API: https://github.com/imankulov/linguee-api, this is a bit unreliable as if you use it too quickly, it will start returning Error Code 503, which means the server was not able to process the request.
The scrapper API goes to the webpage: https://www.linguee.de/deutsch-englisch/uebersetzung/[GermanWord].html, and gets the data directly from the website. This is only to be used as a last resort as if you use it too much Linguee will block the Azure Function's IP Address and you have to manually restart the function app.
After either of the 2 APIs has got the data, it uploads the data to a Firebase Realtime Database, in this format: [LowercaseGermanWord] : [GermanWordDataJSON], to the path data/GermanEnglish. This is useful as it allows the API to build up its own dictionary, so in the case of both APIs failing you can use the database.
When you call a word, the API first checks if the word already exists in firebase, if not then it calls the Linguee API, and if that doesn't work then it will use the scrapping API
App Documentation
Here is the app on the app store: https://apps.apple.com/bs/app/lingolearn/id1608210020
Here is a preview of the App: