Skip to content

Commit

Permalink
Used string interpolation, add error toast, polish translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee0z committed Mar 18, 2024
1 parent ebafb4e commit 31947c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,6 @@
"Run rules import": "Uruchom import zasad",
"Found": "Znaleziono",
"loading info about rules, please wait": "ładowanie informacji o zasadach, proszę czekać",
"There was an error fetching rules.": "Wystąpił błąd podczas pobierania zasad.",
"Results found": "Znaleziono wyników"
}
4 changes: 2 additions & 2 deletions resources/js/Pages/City/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ function toggleRegulations() {
}
function fetchRegulations() {
axios.get('/api/rules/'+props.city.country.name+'/'+props.city.name)
axios.get('/api/rules/${props.city.country.name}/${props.city.name}')
.then(response => {
rules.pl= response.data.rulesPL
rules.en = response.data.rulesEN
})
.catch(error => {
console.log(error)
toast.error(__('There was an error fetching rules.'))
})
}
Expand Down

0 comments on commit 31947c8

Please sign in to comment.