|
|
|
|
|
LANDING_TRANSLATIONS = {
|
|
'en': {
|
|
|
|
'select_language': "Select language - Selecciona tu idioma - Виберіть мову",
|
|
|
|
|
|
'login': "Login",
|
|
'register': "Sign Up",
|
|
|
|
|
|
'email': "Email",
|
|
'password': "Password",
|
|
'login_button': "Login",
|
|
'invalid_credentials': "Invalid credentials",
|
|
|
|
|
|
'name': "Name",
|
|
'lastname': "Last Name",
|
|
'institution': "Institution",
|
|
'current_role': "Role in your institution",
|
|
'professor': "Professor",
|
|
'student': "Student",
|
|
'administrative': "Administrative",
|
|
'institutional_email': "Institutional email",
|
|
'interest_reason': "Why are you interested in trying AIdeaText?",
|
|
'submit_application': "Submit application",
|
|
'complete_all_fields': "Please complete all fields.",
|
|
'use_institutional_email': "Please use an institutional email.",
|
|
'application_sent': "Your application has been sent. We will contact you soon.",
|
|
'application_error': "There was a problem sending your application. Please try again later.",
|
|
|
|
|
|
'use_cases': "Use Cases",
|
|
'presentation_videos': "Presentation Videos",
|
|
'academic_presentations': "Academic Presentations",
|
|
'event_photos': "Event Photos",
|
|
'version_control': "Version Control",
|
|
|
|
|
|
'select_use_case': "Select a use case in English, Spanish or Ukrainian:",
|
|
'select_presentation': "Select a presentation:",
|
|
|
|
|
|
'latest_version_title': "Latest Version Updates",
|
|
'version_updates': [
|
|
"Improved interface for a better user experience",
|
|
"Optimization of morphosyntactic analysis",
|
|
"Support for Ukrainian language",
|
|
"New discourse analysis module",
|
|
"Integrated chat system for support"
|
|
]
|
|
},
|
|
'es': {
|
|
|
|
'select_language': "Selecciona tu idioma - Select language - Виберіть мову",
|
|
|
|
|
|
'login': "Iniciar Sesión",
|
|
'register': "Registrarse",
|
|
|
|
|
|
'email': "Correo electrónico",
|
|
'password': "Contraseña",
|
|
'login_button': "Iniciar Sesión",
|
|
'invalid_credentials': "Credenciales incorrectas",
|
|
|
|
|
|
'name': "Nombre",
|
|
'lastname': "Apellidos",
|
|
'institution': "Institución",
|
|
'current_role': "Rol en la institución donde labora",
|
|
'professor': "Profesor",
|
|
'student': "Estudiante",
|
|
'administrative': "Administrativo",
|
|
'institutional_email': "Correo electrónico de su institución",
|
|
'interest_reason': "¿Por qué estás interesado en probar AIdeaText?",
|
|
'submit_application': "Enviar solicitud",
|
|
'complete_all_fields': "Por favor, completa todos los campos.",
|
|
'use_institutional_email': "Por favor, utiliza un correo electrónico institucional.",
|
|
'application_sent': "Tu solicitud ha sido enviada. Te contactaremos pronto.",
|
|
'application_error': "Hubo un problema al enviar tu solicitud. Por favor, intenta de nuevo más tarde.",
|
|
|
|
|
|
'use_cases': "Casos de uso",
|
|
'presentation_videos': "Videos de presentaciones",
|
|
'academic_presentations': "Ponencias académicas",
|
|
'event_photos': "Fotos de eventos",
|
|
'version_control': "Control de versiones",
|
|
|
|
|
|
'select_use_case': "Selecciona un caso de uso en español, inglés o ucraniano:",
|
|
'select_presentation': "Selecciona una conferencia:",
|
|
|
|
|
|
'latest_version_title': "Novedades de la versión actual",
|
|
'version_updates': [
|
|
"Interfaz mejorada para una mejor experiencia de usuario",
|
|
"Optimización del análisis morfosintáctico",
|
|
"Soporte para el idioma ucraniano",
|
|
"Nuevo módulo de análisis del discurso",
|
|
"Sistema de chat integrado para soporte"
|
|
]
|
|
},
|
|
'uk': {
|
|
|
|
'select_language': "Виберіть мову - Selecciona tu idioma - Select language",
|
|
|
|
|
|
'login': "Увійти",
|
|
'register': "Зареєструватися",
|
|
|
|
|
|
'email': "Електронна пошта",
|
|
'password': "Пароль",
|
|
'login_button': "Увійти",
|
|
'invalid_credentials': "Невірні облікові дані",
|
|
|
|
|
|
'name': "Ім'я",
|
|
'lastname': "Прізвище",
|
|
'institution': "Установа",
|
|
'current_role': "Роль у вашій установі",
|
|
'professor': "Викладач",
|
|
'student': "Студент",
|
|
'administrative': "Адміністративний персонал",
|
|
'institutional_email': "Інституційна електронна пошта",
|
|
'interest_reason': "Чому ви зацікавлені у випробуванні AIdeaText?",
|
|
'submit_application': "Надіслати заявку",
|
|
'complete_all_fields': "Будь ласка, заповніть усі поля.",
|
|
'use_institutional_email': "Будь ласка, використовуйте інституційну електронну пошту.",
|
|
'application_sent': "Вашу заявку надіслано. Ми зв'яжемося з вами найближчим часом.",
|
|
'application_error': "Виникла проблема з надсиланням вашої заявки. Будь ласка, спробуйте пізніше.",
|
|
|
|
|
|
'use_cases': "Приклади використання",
|
|
'presentation_videos': "Презентаційні відео",
|
|
'academic_presentations': "Академічні презентації",
|
|
'event_photos': "Фото подій",
|
|
'version_control': "Контроль версій",
|
|
|
|
|
|
'select_use_case': "Виберіть приклад використання українською, англійською або іспанською мовою:",
|
|
'select_presentation': "Виберіть презентацію:",
|
|
|
|
|
|
'latest_version_title': "Останні оновлення версії",
|
|
'version_updates': [
|
|
"Покращений інтерфейс для кращого досвіду користувача",
|
|
"Оптимізація морфосинтаксичного аналізу",
|
|
"Підтримка української мови",
|
|
"Новий модуль аналізу дискурсу",
|
|
"Інтегрована система чату для підтримки"
|
|
]
|
|
}
|
|
}
|
|
|
|
def get_landing_translations(lang_code):
|
|
"""
|
|
Get translations for the landing page based on language code.
|
|
|
|
Args:
|
|
lang_code (str): Language code ('en', 'es', 'uk')
|
|
|
|
Returns:
|
|
dict: Dictionary with translations for the landing page
|
|
"""
|
|
|
|
if lang_code not in LANDING_TRANSLATIONS:
|
|
lang_code = 'es'
|
|
|
|
return LANDING_TRANSLATIONS[lang_code] |