- return "south-west" if bearing >= 22.5 and bearing < 67.5
- return "south" if bearing >= 67.5 and bearing < 112.5
- return "south-east" if bearing >= 112.5 and bearing < 157.5
- return "east" if bearing >= 157.5 and bearing < 202.5
- return "north-east" if bearing >= 202.5 and bearing < 247.5
- return "north" if bearing >= 247.5 and bearing < 292.5
- return "north-west" if bearing >= 292.5 and bearing < 337.5
- return "west"
+ return t("geocoder.results.direction.south_west") if bearing >= 22.5 and bearing < 67.5
+ return t("geocoder.results.direction.south") if bearing >= 67.5 and bearing < 112.5
+ return t("geocoder.results.direction.south_east") if bearing >= 112.5 and bearing < 157.5
+ return t("geocoder.results.direction.east") if bearing >= 157.5 and bearing < 202.5
+ return t("geocoder.results.direction.north_east") if bearing >= 202.5 and bearing < 247.5
+ return t("geocoder.results.direction.north") if bearing >= 247.5 and bearing < 292.5
+ return t("geocoder.results.direction.north_west") if bearing >= 292.5 and bearing < 337.5
+ return t("geocoder.results.direction.west")