mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Issue 2695
Introduces localisation for API errors
This commit is contained in:
@@ -192,7 +192,7 @@ class PiggyBankController extends Controller
|
||||
|
||||
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json');
|
||||
}
|
||||
throw new FireflyException('Could not store new piggy bank.');
|
||||
throw new FireflyException(trans('api.error_store_new_piggybank'));
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user