Skip to content

Commit

Permalink
Merge pull request #89 from lara-zeus/translations
Browse files Browse the repository at this point in the history
add missing trans
  • Loading branch information
atmonshi authored May 20, 2023
2 parents f677be1 + 1e96177 commit a46fadb
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 15 deletions.
16 changes: 15 additions & 1 deletion resources/lang/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,19 @@
"Select Page": "اختر الصفحة",
"Recent Post": "أحدث التدوينات",
"Post link": "رابط تدوينة",
"Page link": "رابط صفحة"
"Page link": "رابط صفحة",
"Libraries": "المكتبات",
"Image": "صورة",
"File": "ملف",
"Video": "فيديو",
"library": "مكتبة",
"created at": "أنشأت بتاريخ",
"Show File": "عرض الملف",
"Library Title": "عنوان المكتبة",
"Library Slug": "رابط المكتبة",
"Library Description": "وصف المكتبة",
"Library Categories": "تصنيف المكتبة",
"Library Type": "نوع المحتوى",
"Library File": "ملف المكتبة",
"file url": "رابط الملف"
}
16 changes: 15 additions & 1 deletion resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,19 @@
"Select Page": "Select Page",
"Recent Post": "Recent Post",
"Post link": "Post link",
"Page link": "Page link"
"Page link": "Page link",
"Libraries": "Libraries",
"Image": "Image",
"File": "File",
"Video": "Video",
"library": "library",
"created at": "created at",
"Show File": "Show File",
"Library Title": "Library Title",
"Library Slug": "Library Slug",
"Library Description": "Library Description",
"Library Categories": "Library Categories",
"Library Type": "Library Type",
"Library File": "Library File",
"file url": "file url"
}
16 changes: 15 additions & 1 deletion resources/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,19 @@
"Select Page": "Select Page",
"Recent Post": "Recent Post",
"Post link": "Post link",
"Page link": "Page link"
"Page link": "Page link",
"Libraries": "Libraries",
"Image": "Image",
"File": "File",
"Video": "Video",
"library": "library",
"created at": "created at",
"Show File": "Show File",
"Library Title": "Library Title",
"Library Slug": "Library Slug",
"Library Description": "Library Description",
"Library Categories": "Library Categories",
"Library Type": "Library Type",
"Library File": "Library File",
"file url": "file url"
}
16 changes: 8 additions & 8 deletions src/Console/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ class PublishCommand extends Command
public function handle()
{
// publish Sky files
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-config', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-migrations', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-translations', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-config', '--force' => $this->option('force')]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-migrations', '--force' => $this->option('force')]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-translations', '--force' => $this->option('force')]);

$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-seeder', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-factories', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-seeder', '--force' => $this->option('force')]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-factories', '--force' => $this->option('force')]);

// publish Zeus files
$this->callSilent('vendor:publish', ['--tag' => 'zeus-config', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-views', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-assets', '--force' => $this->option('force') ?? false]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-config', '--force' => $this->option('force')]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-views', '--force' => $this->option('force')]);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-assets', '--force' => $this->option('force')]);

$this->output->success('Zeus and Sky has been Published successfully');
}
Expand Down
8 changes: 4 additions & 4 deletions src/Filament/Resources/LibraryResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ public static function form(Form $form): Form

Textarea::make('description')
->maxLength(255)
->label(__('Description'))
->label(__('Library Description'))
->columnSpan(2),

SpatieTagsInput::make('category')
->type('library')
->label(__('Categories')),
->label(__('Library Categories')),

Select::make('type')
->label(__('Type'))
->label(__('Library Type'))
->visible(config('zeus-sky.library_types') !== null)
->options(config('zeus-sky.library_types', null)),

Section::make(__('File'))
Section::make(__('Library File'))
->schema([
Radio::make('upload_or_url')
->label('')
Expand Down

0 comments on commit a46fadb

Please sign in to comment.