From e26fbf0759cbb8d98b67f12f8a8b334936ad008d Mon Sep 17 00:00:00 2001 From: Mauricio Vera Date: Sat, 25 Feb 2023 22:33:13 -0600 Subject: [PATCH 1/2] Stubs localized --- src/stubs/views/create.stub | 4 ++-- src/stubs/views/edit.stub | 4 ++-- src/stubs/views/form.stub | 2 +- src/stubs/views/index.stub | 6 +++--- src/stubs/views/show.stub | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/stubs/views/create.stub b/src/stubs/views/create.stub index f6ee6f5..735b578 100644 --- a/src/stubs/views/create.stub +++ b/src/stubs/views/create.stub @@ -1,7 +1,7 @@ @extends('{{layout}}') @section('template_title') - Create {{modelTitle}} + {{ __('Create') }} {{modelTitle}} @endsection @section('content') @@ -13,7 +13,7 @@
- Create {{modelTitle}} + {{ __('Create') }} {{modelTitle}}
diff --git a/src/stubs/views/edit.stub b/src/stubs/views/edit.stub index 62f47e4..8c7c5c8 100644 --- a/src/stubs/views/edit.stub +++ b/src/stubs/views/edit.stub @@ -1,7 +1,7 @@ @extends('{{layout}}') @section('template_title') - Update {{modelTitle}} + {{ __('Update') }} {{modelTitle}} @endsection @section('content') @@ -13,7 +13,7 @@
- Update {{modelTitle}} + {{ __('Update') }} {{modelTitle}}
diff --git a/src/stubs/views/form.stub b/src/stubs/views/form.stub index 5ed803a..d5edc75 100644 --- a/src/stubs/views/form.stub +++ b/src/stubs/views/form.stub @@ -3,6 +3,6 @@ {{form}}
\ No newline at end of file diff --git a/src/stubs/views/index.stub b/src/stubs/views/index.stub index b84cb48..52a9779 100644 --- a/src/stubs/views/index.stub +++ b/src/stubs/views/index.stub @@ -46,11 +46,11 @@ {{tableBody}} - Show - Edit + {{ __('Show') }} + {{ __('Edit') }} @csrf @method('DELETE') - +
diff --git a/src/stubs/views/show.stub b/src/stubs/views/show.stub index 55faa4e..efad22d 100644 --- a/src/stubs/views/show.stub +++ b/src/stubs/views/show.stub @@ -1,7 +1,7 @@ @extends('{{layout}}') @section('template_title') - {{ ${{modelNameLowerCase}}->name ?? 'Show {{modelTitle}}' }} + {{ ${{modelNameLowerCase}}->name ?? '{{ __('Show') }} {{modelTitle}}' }} @endsection @section('content') @@ -11,10 +11,10 @@
- Show {{modelTitle}} + {{ __('Show') }} {{modelTitle}}
From fee4a818f2bebeb9eae2c692c427809d6d1afe7d Mon Sep 17 00:00:00 2001 From: Mauricio Vera Date: Tue, 14 Mar 2023 21:57:05 -0600 Subject: [PATCH 2/2] Fix }} --- src/stubs/views/show.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stubs/views/show.stub b/src/stubs/views/show.stub index efad22d..d02a5d6 100644 --- a/src/stubs/views/show.stub +++ b/src/stubs/views/show.stub @@ -1,7 +1,7 @@ @extends('{{layout}}') @section('template_title') - {{ ${{modelNameLowerCase}}->name ?? '{{ __('Show') }} {{modelTitle}}' }} + {{ ${{modelNameLowerCase}}->name ?? "{{ __('Show') {{modelTitle}}" }} @endsection @section('content')