Change package translations to use php files
This commit is contained in:
parent
c54d3602f3
commit
9c91bb3659
5 changed files with 11 additions and 9 deletions
|
|
@ -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"
|
||||
}
|
||||
5
resources/lang/en/enum.php
Normal file
5
resources/lang/en/enum.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'notInList' => 'The field :attribute has to be one of the followings: :values'
|
||||
];
|
||||
|
|
@ -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"
|
||||
}
|
||||
5
resources/lang/fr/enum.php
Normal file
5
resources/lang/fr/enum.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'notInList' => 'Le champ :attribute doit être une des valeurs suivantes: :values'
|
||||
];
|
||||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue