@section('title', __('Translation Editor'))
{{ __('Processing...') }}
@if(!$this->isProduction)

{{ __('Production Environment Only') }}

{{ __('This Translation Editor is only functional in production environment. You are currently in') }} {{ app()->environment() }} {{ __('environment') }}.

{{ __('All editing functions are disabled. To enable this feature, switch to production environment.') }}

@endif
isProduction) style="opacity: 0.6; pointer-events: none;" @endif>
{{ count($filteredTranslations) }} {{ __('translations shown') }}
{{ count($translations) }} {{ __('total translations') }}
@if($selectedLanguage !== 'en') @endif
@if($showCreateLanguageForm)

{{ __('Create New Language') }}

{{ __('Create a new language by copying translations from an existing language. The new language will be automatically added to your backend configuration.') }}

@error('newLanguageName') {{ $message }} @enderror

{{ __('2-5 characters, letters only') }}

@error('newLanguageCode') {{ $message }} @enderror

{{ __('Select source language to copy from') }}

@error('sourceLanguage') {{ $message }} @enderror

{{ __('What happens when you create a new language?') }}

  • {{ __('A new JSON file will be created in resources/lang/') }}
  • {{ __('All translations from the source language will be copied') }}
  • {{ __('Backend configuration will be automatically updated') }}
  • {{ __('A backup of the config file will be created') }}
  • {{ __('The new language will appear in the dropdown') }}
@endif @if($showAddForm)

{{ __('Add New Translation') }}

@endif
@forelse($filteredTranslations as $key => $value) @empty @endforelse
{{ __('Key') }} {{ __('Value') }} {{ __('Actions') }}
{{ $key }} @if($editingKey === $key) @else
{{ $value }}
@endif
@if($editingKey === $key) @else @endif

{{ __('No translations found') }}

@if(!empty($searchTerm))

{{ __('Try a different search term') }}

@endif

{{ __('Note') }}: {{ __('Translation changes are automatically backed up before saving. Cache is cleared after each update to ensure changes take effect immediately.') }}

{{ __('Backups are stored in') }} resources/lang/backups/

@push('scripts') @endpush