{#if !targetTable} {_('translate.target_schema.enter_table') || 'Enter a target table name and click "Check Target Schema".'} {:else if !targetDatabaseId} {_('translate.target_schema.select_database') || 'Select a target database and click "Check Target Schema".'} {:else} {_('translate.target_schema.press_button') || 'Click "Check Target Schema" to verify the target table columns.'} {/if}
{:else if state === 'checking'}{_('translate.target_schema.checking') || 'Checking target table schema…'}
{:else if state === 'complete' && result} {#key renderKey} {#if !result.table_exists}{_('translate.target_schema.table_not_found') || 'Target table not found in the database.'}
{_('translate.target_schema.all_present') || 'Target table has all required columns.'}
{_('translate.target_schema.missing_columns_title') || 'Target table is missing some required columns.'}
{_('translate.target_schema.expected_columns') || 'Required columns for translation inserts:'}
{_('translate.target_schema.add_columns') || 'Add these missing columns to the target table, or configure custom column names in "Target Column Mapping" above.'}
{result.error}
{/if} {:else if state === 'error'}{_('translate.target_schema.check_error') || 'Could not verify target table schema. Make sure the table exists and is accessible.'}