-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add localization responses and error messages (#93)
* Add localization responses and error messages * Add test coverage for change_locale method
- Loading branch information
1 parent
a3c012f
commit 68d0db0
Showing
14 changed files
with
150 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
rubocop: | ||
version: 0.83.0 | ||
version: 1.5.2 | ||
config_file: .rubocop.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
en: | ||
description_text: | ||
air_travel: "Air travel distance between %{first_city} and %{second_city} is %{distance} km. Estimated air travel would take %{duration} minutes" | ||
land_travel: "Land travel distance between %{first_city} and %{second_city} is %{distance} km" | ||
errors: | ||
cities_not_found_error: "Couldn't find cities combination with '%{first}/%{second}'" | ||
city_not_found_error: "Couldn't find city name with '%{input}'" | ||
district_not_found_error: "Couldn't find district name with '%{district_input}' of '%{city_input}'" | ||
not_even_input: "Given value [%{input}] must be an even number" | ||
outside_bounds: "Given value [%{input}] is outside bounds of %{min} to %{max}" | ||
postcode_not_found_error: "Couldn't find any subdistrict with postcode '%{postcode_input}'" | ||
subdistrict_not_found_error: "Couldn't find subdistrict with '%{subdistrict_input}' of '%{district_input}'/'%{city_input}'" | ||
unsupported_travel_method: "Travel method '%{input}' is unsupported" | ||
language: | ||
errors: | ||
unsupported_language_code: "Unsupported language code. Please use 'tr' for Turkish, 'en' for English" | ||
success: "Language set to English" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
tr: | ||
description_text: | ||
air_travel: "%{first_city} ile %{second_city} arasındaki havayolu mesafesi %{distance} km. Tahmini uçuş süresi %{duration} dakikadır" | ||
land_travel: "%{first_city} ile %{second_city} arasındaki karayolu mesafesi %{distance} km" | ||
errors: | ||
cities_not_found_error: "'%{first}/%{second}' ile şehir kombinasyonu bulunamadı" | ||
city_not_found_error: "'%{input}' ile bir şehir bulunamadı" | ||
district_not_found_error: "'%{city_input}' şehrine ait '%{district_input}' ilçesi ile bir kayıt bulunamadı" | ||
not_even_input: "Girilen değer [%{input}] çift sayı olmalı" | ||
outside_bounds: "Girilen değer [%{input}] %{min} ile %{max} değerleri dışında" | ||
postcode_not_found_error: "'%{postcode_input}' posta kodu ile kayıt bulunamadı" | ||
subdistrict_not_found_error: "'%{subdistrict_input}' ile '%{district_input}'/'%{city_input}' ait bir kayıt bulunamdı" | ||
unsupported_travel_method: "'%{input}' yolculuk methodu desteklenmiyor" | ||
language: | ||
errors: | ||
unsupported_language_code: "Desteklenmeyen dil kodu. Lütfen Türkçe için 'tr', İngilizce için 'en' kullanınız" | ||
success: "Dil Türkçe olarak ayarlandı" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.