Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translations for blocks / merge tags panel #238

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions resources/lang/en/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'align_right' => 'Align Text Right',
'blockquote' => 'Blockquote',
'blocks' => [
'panel' => 'Blocks',
'insert' => 'Insert Block',
'update' => 'Update Block',
],
Expand Down Expand Up @@ -79,6 +80,9 @@
'checked' => 'Checked List',
],
'media' => 'Insert / Edit Media',
'merge_tags' => [
'panel' => 'Merge tags',
],
'paragraph' => 'Paragraph',
'redo' => 'Redo',
'remove_color' => 'Remove Color',
Expand Down
4 changes: 2 additions & 2 deletions resources/views/tiptap-editor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ class="hidden shrink-0 space-y-2 max-w-sm md:flex flex-col h-full"
<div class="flex items-center mt-2">
<p class="text-xs font-bold" x-show="! isCollapsed">
@if ($shouldSupportBlocks)
Blocks
{{ __('filament-tiptap-editor::editor.blocks.panel') }}
@else
Merge Tags
{{ __('filament-tiptap-editor::editor.merge_tags.panel') }}
@endif
</p>

Expand Down