generated from fidum/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
96 additions
and
61 deletions.
There are no files selected for viewing
24 changes: 13 additions & 11 deletions
24
tests/.pest/snapshots/Commands/UnusedCommandTest/it_can_test_with_default_filters.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
6 unused translations found | ||
+--------+-----------+------------------------------------+-------------+ | ||
| Locale | Namespace | Key | Value | | ||
+--------+-----------+------------------------------------+-------------+ | ||
| en | | example.unused | I am unused | | ||
| en | | example.blade.choice.unused | I am unused | | ||
| en | | example.blade.lang.unused | I am unused | | ||
| en | | folder/example.unused | I am unused | | ||
| en | | folder/example.blade.choice.unused | I am unused | | ||
| en | | folder/example.blade.lang.unused | I am unused | | ||
+--------+-----------+------------------------------------+-------------+ | ||
8 unused translations found | ||
+--------+-----------+------------------------------------+------------------------------+ | ||
| Locale | Namespace | Key | Value | | ||
+--------+-----------+------------------------------------+------------------------------+ | ||
| en | | example.unused | I am unused in php class | | ||
| en | | example.blade.choice.unused | I am unused in blade | | ||
| en | | example.blade.lang.unused | I am unused in blade | | ||
| en | | example.vue.unused | I am unused in vue component | | ||
| en | | folder/example.unused | I am unused in php class | | ||
| en | | folder/example.blade.choice.unused | I am unused in blade | | ||
| en | | folder/example.blade.lang.unused | I am unused in blade | | ||
| en | | folder/example.vue.unused | I am unused in vue component | | ||
+--------+-----------+------------------------------------+------------------------------+ |
2 changes: 1 addition & 1 deletion
2
tests/.pest/snapshots/Commands/UnusedCommandTest/it_can_test_with_default_no_fields.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6 unused translations found | ||
8 unused translations found |
38 changes: 21 additions & 17 deletions
38
tests/.pest/snapshots/Commands/UnusedCommandTest/it_can_test_with_default_no_filters.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
12 unused translations found | ||
+--------+-----------+------------------------------------+-----------------------+ | ||
| Locale | Namespace | Key | Value | | ||
+--------+-----------+------------------------------------+-----------------------+ | ||
| en | example | example.unused | I am unused in vendor | | ||
| en | example | example.blade.choice.unused | I am unused in vendor | | ||
| en | example | example.blade.lang.unused | I am unused in vendor | | ||
| en | example | folder/example.unused | I am unused | | ||
| en | example | folder/example.blade.choice.unused | I am unused | | ||
| en | example | folder/example.blade.lang.unused | I am unused | | ||
| en | | example.unused | I am unused | | ||
| en | | example.blade.choice.unused | I am unused | | ||
| en | | example.blade.lang.unused | I am unused | | ||
| en | | folder/example.unused | I am unused | | ||
| en | | folder/example.blade.choice.unused | I am unused | | ||
| en | | folder/example.blade.lang.unused | I am unused | | ||
+--------+-----------+------------------------------------+-----------------------+ | ||
16 unused translations found | ||
+--------+-----------+------------------------------------+------------------------------+ | ||
| Locale | Namespace | Key | Value | | ||
+--------+-----------+------------------------------------+------------------------------+ | ||
| en | example | example.unused | I am unused in php class | | ||
| en | example | example.blade.choice.unused | I am unused in blade | | ||
| en | example | example.blade.lang.unused | I am unused in blade | | ||
| en | example | example.vue.unused | I am unused in vue component | | ||
| en | example | folder/example.unused | I am unused in php class | | ||
| en | example | folder/example.blade.choice.unused | I am unused in blade | | ||
| en | example | folder/example.blade.lang.unused | I am unused in blade | | ||
| en | example | folder/example.vue.unused | I am unused in vue component | | ||
| en | | example.unused | I am unused in php class | | ||
| en | | example.blade.choice.unused | I am unused in blade | | ||
| en | | example.blade.lang.unused | I am unused in blade | | ||
| en | | example.vue.unused | I am unused in vue component | | ||
| en | | folder/example.unused | I am unused in php class | | ||
| en | | folder/example.blade.choice.unused | I am unused in blade | | ||
| en | | folder/example.blade.lang.unused | I am unused in blade | | ||
| en | | folder/example.vue.unused | I am unused in vue component | | ||
+--------+-----------+------------------------------------+------------------------------+ |
4 changes: 3 additions & 1 deletion
4
...pest/snapshots/Commands/UnusedCommandTest/it_can_test_with_default_restricted_fields.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
6 unused translations found | ||
8 unused translations found | ||
+-----------+------------------------------------+ | ||
| Namespace | Key | | ||
+-----------+------------------------------------+ | ||
| | example.unused | | ||
| | example.blade.choice.unused | | ||
| | example.blade.lang.unused | | ||
| | example.vue.unused | | ||
| | folder/example.unused | | ||
| | folder/example.blade.choice.unused | | ||
| | folder/example.blade.lang.unused | | ||
| | folder/example.vue.unused | | ||
+-----------+------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
|
||
'used' => 'I am used in php class', | ||
'unused' => 'I am unused in php class', | ||
'blade' => [ | ||
'choice' => [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
'lang' => [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
], | ||
'vue' => [ | ||
'used' => 'I am used in vue component', | ||
'unused' => 'I am unused in vue component', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
|
||
'used' => 'I am used in php class', | ||
'unused' => 'I am unused in php class', | ||
'blade' => [ | ||
'choice' => [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
'lang' => [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
], | ||
'vue' => [ | ||
'used' => 'I am used in vue component', | ||
'unused' => 'I am unused in vue component', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<template> | ||
{{ __('example.vue.used', {foo: 'bar'}) }} | ||
{{ __( | ||
'folder/example.vue.used', | ||
{foo: 'bar'} | ||
)}} | ||
</template> | ||
|
||
<script setup> | ||
const exampleA = computed(() => __('example::example.vue.used')) | ||
const exampleB = computed(() => __( | ||
'example::folder/example.vue.used' | ||
)) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
'used' => 'I am used in vendor', | ||
'unused' => 'I am unused in vendor', | ||
|
||
'used' => 'I am used in php class', | ||
'unused' => 'I am unused in php class', | ||
'blade' => [ | ||
'choice' => [ | ||
'used' => 'I am used in vendor', | ||
'unused' => 'I am unused in vendor', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
'lang' => [ | ||
'used' => 'I am used in vendor', | ||
'unused' => 'I am unused in vendor', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
] | ||
], | ||
'vue' => [ | ||
'used' => 'I am used in vue component', | ||
'unused' => 'I am unused in vue component', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
|
||
'used' => 'I am used in php class', | ||
'unused' => 'I am unused in php class', | ||
'blade' => [ | ||
'choice' => [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
'lang' => [ | ||
'used' => 'I am used', | ||
'unused' => 'I am unused', | ||
'used' => 'I am used in blade', | ||
'unused' => 'I am unused in blade', | ||
], | ||
] | ||
], | ||
'vue' => [ | ||
'used' => 'I am used in vue component', | ||
'unused' => 'I am unused in vue component', | ||
], | ||
]; |