@@ -45,16 +45,16 @@ public function getEditorTools(): array
4545 RichEditorTool::make ('jumpAnchor ' )
4646 ->action (arguments: '{ anchorId: $getEditor().getAttributes( \'jumpAnchor \')?.[ \'data-anchor-id \'] } ' )
4747 ->icon (Heroicon::Hashtag)
48- ->label ('Add Jump Anchor ' ),
48+ ->label (__ ( 'Add Jump Anchor ' ) ),
4949 ];
5050 }
5151
5252 public function getEditorActions (): array
5353 {
5454 return [
5555 Action::make ('jumpAnchor ' )
56- ->modalHeading ('Add Jump Anchor ' )
57- ->modalDescription ('Add an anchor to the selected text that can be used for navigation. ' )
56+ ->modalHeading (__ ( 'Add Jump Anchor ' ) )
57+ ->modalDescription (__ ( 'Add an anchor to the selected text that can be used for navigation. ' ) )
5858 ->modalWidth (Width::Medium)
5959 ->modalSubmitActionLabel (__ ('Save ' ))
6060 ->fillForm (fn (array $ arguments ): array => [
@@ -64,11 +64,11 @@ public function getEditorActions(): array
6464 ])
6565 ->schema ([
6666 TextInput::make ('anchorId ' )
67- ->label ('Anchor ID ' )
68- ->placeholder ('e.g., section-1, my-anchor ' )
67+ ->label (__ ( 'Anchor ID ' ) )
68+ ->placeholder (__ ( 'e.g., section-1, my-anchor ' ) )
6969 ->required ()
7070 ->rules (['regex:/^[a-zA-Z0-9-_]+$/ ' ])
71- // ->helperText('The ID that will be assigned to the span element (e.g., "section-1" for id="section-1")')
71+ // ->helperText(__( 'The ID that will be assigned to the span element (e.g., "section-1" for id="section-1")') )
7272 ->live ()
7373 ->afterStateUpdated (function ($ state , callable $ set ) {
7474 // Generate a slug-like ID if empty
0 commit comments