When reading in GTFS that includes translations.txt, the translations are read into Translation model classes. In addition, this PR provides a service TranslationService which implements the spec, allowing a caller to obtain an instance of a GTFS model class (Route, Agency, etc) with the fields translated as per the supplied translations file and specification.
Please make sure these boxes are checked before submitting your pull request - thanks!
[ ] Run the unit tests with mvn test to make sure you didn't break anything
[ ] Format the title like "Fix # - short description of fix and changes"
Summary:
This PR adds support for the GTFS Translations spec, available here: http://bit.ly/gtfs-translations
Expected behavior:
When reading in GTFS that includes
translations.txt
, the translations are read intoTranslation
model classes. In addition, this PR provides a serviceTranslationService
which implements the spec, allowing a caller to obtain an instance of a GTFS model class (Route
,Agency
, etc) with the fields translated as per the supplied translations file and specification.Please make sure these boxes are checked before submitting your pull request - thanks!
mvn test
to make sure you didn't break anything