To help the user with common phrases and save bandwidth and translation allowance, the app will store a history of requested translations and their results. We'll give the user the option to view them, and use them to avoid duplicate network requests if the user enters text that has already been translated.
We'll store the history file in the app's
Documents folder, which sync software generally backs up to the user's computer. Each line will be a JSON-encoded copy of the arrays of strings that holds the original text and the translation.
main.lua file in the
TranslationBuddy folder, if you don't already have it open from the previous task.
The history view and the entry view both need ...