Closed Treggats closed 10 months ago
Describe the bug Due to a non-existent path, the translations are no longer loaded.
To Reproduce Steps to reproduce the behaviour:
use the following in a test, this will currently fail.
self::assertSame('Prijs', __('invoices::invoice.price', locale: 'nl_NL'));
Expected behavior The Dutch (and other languages) should be loaded.
Change which will fix the issue https://github.com/LaravelDaily/laravel-invoices/blob/master/src/InvoiceServiceProvider.php#L31
-$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'invoices'); +$this->loadTranslationsFrom(__DIR__ . '/../lang', 'invoices');
This is fixed with the new release.
Describe the bug Due to a non-existent path, the translations are no longer loaded.
To Reproduce Steps to reproduce the behaviour:
use the following in a test, this will currently fail.
Expected behavior The Dutch (and other languages) should be loaded.
Change which will fix the issue https://github.com/LaravelDaily/laravel-invoices/blob/master/src/InvoiceServiceProvider.php#L31