--- import type { LibraryLocale } from '../utils/library-catalog'; interface Props { mode?: 'embedded' | 'legacy'; locale?: LibraryLocale; archiveId?: string; resultsId: string; } const { mode = 'embedded', locale = 'en', archiveId, resultsId } = Astro.props; const messages = { en: { label: 'Search the Library', placeholder: 'Search', submit: 'Search', clear: 'Clear search', loading: 'Loading Library search…', prompt: 'Enter a term to search Library articles.', noResults: 'No Library articles matched your search.', error: 'Search is unavailable. The Library list remains available.', results: 'Library search results', result: 'result', resultsWord: 'results', previous: 'Previous results', next: 'Next results', language: 'Language', allLanguages: 'All languages', js: 'Interactive Library search requires JavaScript.' }, es: { label: 'Buscar en la Biblioteca', placeholder: 'Buscar', submit: 'Buscar', clear: 'Borrar búsqueda', loading: 'Cargando la búsqueda de la Biblioteca…', prompt: 'Ingrese un término para buscar artículos de la Biblioteca.', noResults: 'No se encontraron artículos de la Biblioteca.', error: 'La búsqueda no está disponible. La lista de la Biblioteca permanece disponible.', results: 'Resultados de búsqueda de la Biblioteca', result: 'resultado', resultsWord: 'resultados', previous: 'Resultados anteriores', next: 'Resultados siguientes', language: 'Idioma', allLanguages: 'Todos los idiomas', js: 'La búsqueda interactiva de la Biblioteca requiere JavaScript.' }, ar: { label: 'البحث في المكتبة', placeholder: 'بحث', submit: 'بحث', clear: 'مسح البحث', loading: 'جارٍ تحميل البحث في المكتبة…', prompt: 'أدخل عبارة للبحث في مقالات المكتبة.', noResults: 'لم يتم العثور على مقالات مطابقة في المكتبة.', error: 'البحث غير متاح. تبقى قائمة المكتبة متاحة.', results: 'نتائج البحث في المكتبة', result: 'نتيجة', resultsWord: 'نتائج', previous: 'النتائج السابقة', next: 'النتائج التالية', language: 'اللغة', allLanguages: 'كل اللغات', js: 'يتطلب البحث التفاعلي في المكتبة تفعيل JavaScript.' } }[locale]; ---