How csc207-2026f-uoft/lostintranslation works
This is a Java country-name translation application: users select a country and language, then see the translation in a GUI. The documented workflow uses a Translator service and country/language code converters to present readable names instead of codes; the JSON data supplies translations, while tab-delimited files map names to codes. The README names CanadaTranslator as a translation task and describes JSONTranslator-related data, but source excerpts were not provided, so implementation-specific calls and data-loading details remain unverified.
Main entry points: GUI.java Translation GUI · Translator.java Translator service · JSONTranslator.java JSON translator · CountryCodeConverter.java Country code converter
Components 10
User interface
- Translation GUI
src/main/java/translation/GUI.java
Translation services
- Translator service
src/main/java/translation/Translator.java - JSON translator
src/main/java/translation/JSONTranslator.java - Canada translator
src/main/java/translation/CanadaTranslator.java - Country code converter
src/main/java/translation/CountryCodeConverter.java - Language code converter
src/main/java/translation/LanguageCodeConverter.java
Reference data
- Translation data
src/main/resources/sample.json - Country mappings
src/main/resources/country-codes.txt - Language mappings
src/main/resources/language-codes.txt
Other components
- User
Connections 9
- User → Translation GUI: selects country and language
README.md - Translation GUI → Translator service: uses service
README.md - Translation GUI → Country code converter: uses converter
README.md - Translation GUI → Language code converter: uses converter
README.md - Country code converter → Country mappings: maps country codes
README.md - Language code converter → Language mappings: maps language codes
README.md - JSON translator → Translation data: uses translation data
README.md - JSON translator → Translator service: implements service
- Canada translator → Translator service: implements service