Change package translations to use php files

This commit is contained in:
Jérémy Munsch 2021-09-12 00:05:10 +02:00
parent c54d3602f3
commit 9c91bb3659
No known key found for this signature in database
GPG key ID: 677E1F9F80C16560
5 changed files with 11 additions and 9 deletions

View file

@ -1,4 +0,0 @@
{
"enum::enum.isNotValid": "The field :attribute is not valid, it has to be an integer or a string.",
"enum::enum.notInList": "The field :attribute has to be one of the followings: :values"
}

View file

@ -0,0 +1,5 @@
<?php
return [
'notInList' => 'The field :attribute has to be one of the followings: :values'
];

View file

@ -1,4 +0,0 @@
{
"enum::enum.isNotValid": "Le champ :attribute n'est pas valide, il doit être un entier ou une chaine.",
"enum::enum.notInList": "Le champ :attribute doit être une des valeurs suivantes: :values"
}

View file

@ -0,0 +1,5 @@
<?php
return [
'notInList' => 'Le champ :attribute doit être une des valeurs suivantes: :values'
];

View file

@ -13,7 +13,7 @@ class EnumServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->loadJsonTranslationsFrom(__DIR__ . '/../resources/lang');
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'enum');
$this->publishes([
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/enum'),