Skip to content

Commit

Permalink
feat(new-structure): Translations to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga committed Jul 7, 2023
1 parent e8e9e57 commit 8e9a8a1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Resources/MoonShineLaravelTranslationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function fields(): array
NoInput::make(
'Ключ',
'key',
fn(
fn (
MoonshineLaravelTranslation $moonshineLaravelTranslation
) => str($moonshineLaravelTranslation->key)
->replaceMatches(
Expand All @@ -97,7 +97,7 @@ public function fields(): array
NoInput::make(
'Ключ',
'key',
fn(
fn (
MoonshineLaravelTranslation $moonshineLaravelTranslation
) => str($moonshineLaravelTranslation->key)
->replaceMatches(
Expand Down Expand Up @@ -195,12 +195,12 @@ public function queryTags(): array

$tags = [];

//foreach (MoonshineLaravelTranslation::getGroupsList() as $groupList) {
// $tags[] = QueryTag::make(
// $groupList, // Tag Title
// fn(Builder $query) => $query->where('group', $groupList) // Query builder
// );
//}
foreach (MoonshineLaravelTranslation::getGroupsList() as $groupList) {
$tags[] = QueryTag::make(
$groupList, // Tag Title
fn (Builder $query) => $query->where('group', $groupList) // Query builder
);
}

return $tags;
}
Expand Down

0 comments on commit 8e9a8a1

Please sign in to comment.