Skip to content

Commit 06547b6

Browse files
committed
Add install_latest action and translations
Rename the Filament action from 'install' to 'install_latest' and update its tooltip to use the new translation key. Add corresponding English and German translation strings ('Install latest version' / 'Neueste Version installieren'). No other behavior changes were made.
1 parent a64dd38 commit 06547b6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

minecraft-modrinth/lang/de/strings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
],
4040

4141
'actions' => [
42+
'install_latest' => 'Neueste Version installieren',
4243
'install' => 'Installieren',
4344
'installed' => 'Installiert',
4445
'update' => 'Aktualisieren',

minecraft-modrinth/lang/en/strings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
],
4040

4141
'actions' => [
42+
'install_latest' => 'Install latest version',
4243
'install' => 'Install',
4344
'installed' => 'Installed',
4445
'update' => 'Update',

minecraft-modrinth/src/Filament/Server/Pages/MinecraftModrinthProjectPage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ public function table(Table $table): Table
416416

417417
return $sections;
418418
}),
419-
Action::make('install')
419+
Action::make('install_latest')
420420
->iconButton()
421421
->icon('tabler-download')
422422
->color('success')
423-
->tooltip(trans('minecraft-modrinth::strings.actions.install'))
423+
->tooltip(trans('minecraft-modrinth::strings.actions.install_latest'))
424424
->visible(function (array $record) {
425425
$installedMod = $this->getInstalledMod($record['project_id']);
426426

0 commit comments

Comments
 (0)