mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Issue 2695
Introduces localisation for API errors
This commit is contained in:
@@ -79,10 +79,10 @@ class CurrencyExchangeRateController extends Controller
|
||||
$toCurrency = $this->repository->findByCodeNull($request->get('to') ?? 'USD');
|
||||
|
||||
if (null === $fromCurrency) {
|
||||
throw new FireflyException('Unknown source currency.');
|
||||
throw new FireflyException(trans('api.error_unknown_source_currency'));
|
||||
}
|
||||
if (null === $toCurrency) {
|
||||
throw new FireflyException('Unknown destination currency.');
|
||||
throw new FireflyException(trans('api.error_unknown_destination_currency'));
|
||||
}
|
||||
|
||||
/** @var Carbon $dateObj */
|
||||
|
Reference in New Issue
Block a user