Skip to content

Add Spanish in i18n #43

Description

@s-pl
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';

i18n.use(initReactI18next).init({
  resources: {
    en: {
      translation: {
        app_name: "BrainRot",
        sponsor: "Sponsor",
        create: "Create",
        accepted_formats: "Accepted formats are: {{formats}}",
        choose_file: "Choose a file",
        file_uploaded: "File '{{fileName}}' uploaded successfully.",
        selected_filename: "Selected file: {{filename}}",
        invalid_file: "Invalid file type. Please upload a supported file.",
        uploading_file: "Uploading file...",
        upload_failed: "Failed to upload file. Please try again.",
        file_too_large: "The file exceeds the maximum allowed size of {{maxSize}} MB.",
        processing_file: "File '{{fileName}}' is being processed. Please wait...",
        extracting_text: "Extracting text...",
        generating_audio: "Generating audio...",
        pending_status: "Pending due to server load. Please wait...",
        unknown_status: "An unknown error occurred. Please try again.",
        status_error: "Error fetching status. Please try again.",
        note_text: "Note:",
        create_new: "Create New",
        section_0_title: "A Fun Solution to Your Study Struggles",
        section_0_body: "Have you ever wanted to scroll through TikTok for hours, but those exams just won’t let you breathe? We get it, studying can feel like a chore when all you want is a break. That’s where BrainRot comes in. With BrainRot, you don’t have to choose between grinding for your grades and enjoying your favorite pastime. We’ve cracked the code to turn studying into something you actually look forward to. Your course materials meet a whole new level of creativity—now, it’s not just work; it’s fun!",
        section_0_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_1.mp4",
        section_1_title: "Study Smarter, Not Boring-er",
        section_1_body: "I know it sounds too good to be true, but trust me: with BrainRot, studying can finally be fun. Here’s how it works: BrainRot’s powerful AI takes your course material, turns it into a voiceover, and matches it with gameplay from viral, endlessly watchable videos—just like the ones that keep you glued to your feed. Imagine prepping for your finals while being entertained by your favorite game highlights. No more zoning out; no more dragging your feet. BrainRot keeps you engaged, entertained, and ready to crush those exams like a boss.",
        section_1_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_2.mp4",
        section_2_title: "Your Personalized Study Adventure",
        section_2_body: "And here’s the best part: when this video ends, you’ll be redirected to the Create Page; your personal BrainRot command center. Upload your course material—PDFs, Word docs, PowerPoint slides, or even simple text files—and watch BrainRot work its magic. In just seconds, you’ll have a custom study video ready to go. It’s fast, it’s fun, and it’s made just for you. So what are you waiting for? Let’s make studying something you can’t wait to do. Click through and give BrainRot a try—you won’t regret it!",
        section_2_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_3.mp4",
        "dashboard.title": "Dashboard",
        "dashboard.profile": "Profile",
        "dashboard.tokens": "Token Usage",
        "dashboard.remaining": "Remaining",
        "dashboard.premium": "Premium Subscription",
        "dashboard.premium_description": "You have a premium subscription",
        "dashboard.free": "Free Subscription",
        "dashboard.free_description": "You have a free subscription",
        "dashboard.premium_features": "Coming soon! Premium features will be available soon!",
        "dashboard.unlock_premium": "Unlock Premium",
        "dashboard.actions": "Quick Actions",
        "dashboard.create_new": "Create New",
        "dashboard.logout": "Logout",
        "common.loading": "Loading...",
        "login.signin": "Sign In",
        "login.title": "Login",
        "login.google": "Sign in with Google",
        "error_occurred": "An error occurred",
        "retry": "Retry",
        "uploading": "Uploading...",
        "retry_upload": "Retry Upload",
        "confirm_cancel": "Are you sure you want to cancel?",
        "upload_cancelled": "Upload cancelled",
        "text_extracted": "Text extracted successfully",
        "login.welcome": "Welcome",
        "login.description": "Please sign in to continue",
        "login.google_signin": "Sign in with Google",
        "dashboard.no_history": "No history available",
        "dashboard.show_all": "Show All",
        "dashboard.history": "History",
        "dashboard.show_video": "Show Video",
        "dashboard.file_loading": "Loading file content...",
        "dashboard.file_error": "Failed to fetch file content. Please try again.",
        "dashboard.selected_file": "Selected File",
        "dashboard.file_modal_close": "Close",
      }
    },
    tr: {
      translation: {
        app_name: "BrainRot",
        sponsor: "Sponsor",
        create: "Oluştur",
        accepted_formats: "Kabul edilen formatlar: {{formats}}",
        choose_file: "Bir dosya seçin",
        file_uploaded: "Dosya '{{fileName}}' başarıyla yüklendi.",
        selected_filename: "Seçilen dosya: {{filename}}",
        invalid_file: "Geçersiz dosya türü. Lütfen desteklenen bir dosya yükleyin.",
        uploading_file: "Dosya yükleniyor...",
        upload_failed: "Dosya yüklenemedi. Lütfen tekrar deneyin.",
        file_too_large: "Dosya, izin verilen maksimum {{maxSize}} MB boyutunu aşıyor.",
        processing_file: "Dosya '{{fileName}}' işleniyor. Lütfen bekleyin...",
        extracting_text: "Metin çıkarılıyor...",
        generating_audio: "Ses oluşturuluyor...",
        pending_status: "Server yoğunluğu nedeniyle işlem sırasında bekliyor. Lütfen bekleyin...",
        unknown_status: "Bilinmeyen bir hata oluştu. Lütfen tekrar deneyin.",
        status_error: "Durum alınırken hata oluştu. Lütfen tekrar deneyin.",
        note_text: "Not:",
        create_new: "Yeni Dosya",
        section_0_title: "Ders Çalışma Derdi Sona Eriyor",
        section_0_body: "Hiç saatlerce TikTok'ta takılmak isterken sınavların seni boğduğunu hissettin mi? Seni anlıyoruz, ders çalışmak bazen dünyanın en sıkıcı işi gibi gelebilir. Ama merak etme, çünkü BrainRot burada! Artık ders çalışmakla keyif almak arasında seçim yapmak zorunda değilsin. BrainRot sayesinde dersler, sıkıcı bir görev olmaktan çıkıp gerçekten eğlenerek vakit geçireceğin bir aktiviteye dönüşüyor. Hem öğrenip hem de keyif almanın tadını çıkar—ders çalışmak artık iş değil, tam anlamıyla eğlence!",
        section_0_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_1_tr.mp4",
        section_1_title: "Daha Akıllı Çalış, Daha Sıkıcı Değil",
        section_1_body: "Biliyorum, kulağa gerçek olamayacak kadar iyi geliyor ama inan, BrainRot sayesinde ders çalışmak gerçekten eğlenceli hale geliyor. Peki nasıl mı? BrainRot’un yapay zekâsı ders notlarını alıyor, bunları seslendirmeye çeviriyor ve popüler, bağımlılık yapan videoların oyun görüntüleriyle birleştiriyor—hani sürekli izlemekten kendini alamadığın türden videolar gibi. Düşünsene, sınavlara hazırlanırken aynı anda keyifli oyun sahneleri izliyorsun. Artık sıkılıp dalıp gitmek ya da sürekli ertelemek yok. BrainRot seni hem motive ediyor, hem eğlendiriyor, hem de sınavlarını başarıyla geçmeye hazır hale getiriyor!",
        section_1_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_2_tr.mp4",
        section_2_title: "Kişisel Ders Çalışma Maceran",
        section_2_body: "Ve işte en güzel kısmı: Video bittiğinde, seni BrainRot’un 'Oluştur' sayfasına yönlendireceğiz. Ders materyallerini yükle—PDF, Word, PowerPoint ya da basit bir metin dosyası fark etmez—ve BrainRot’un büyüsünü gerçekleştirmesini izle. Sadece birkaç saniye içinde sana özel hazırlanmış bir çalışma videosu hazır olacak. Hızlı, eğlenceli ve tamamen sana özel! Peki, neyi bekliyorsun? Ders çalışmayı dört gözle bekleyeceğin bir şeye dönüştürelim. Hemen tıkla ve BrainRot’u dene, pişman olmayacaksın!",
        section_2_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_3_tr.mp4",
        "dashboard.title": "Panel",
        "dashboard.profile": "Profil",
        "dashboard.tokens": "Token Kullanımı",
        "dashboard.remaining": "Kalan",
        "dashboard.premium": "Premium Üyelik",
        "dashboard.premium_description": "Premium üyeliğiniz bulunmaktadır",
        "dashboard.free": "Ücretsiz Üyelik",
        "dashboard.free_description": "Ücretsiz üyeliğiniz bulunmaktadır",
        "dashboard.premium_features": "Çok yakında! Premium özellikler yakında kullanıma açılacak!",
        "dashboard.unlock_premium": "Premium'u Aç",
        "dashboard.actions": "Hızlı İşlemler",
        "dashboard.create_new": "Yeni Oluştur",
        "dashboard.logout": "Çıkış Yap",
        "common.loading": "Yükleniyor...",
        "login.signin": "Giriş Yap",
        "login.title": "Giriş",
        "login.google": "Google ile Giriş Yap",
        "error_occurred": "Bir hata oluştu",
        "retry": "Tekrar Dene",
        "uploading": "Yükleniyor...",
        "retry_upload": "Yüklemeyi Tekrar Dene",
        "confirm_cancel": "İptal etmek istediğinize emin misiniz?",
        "upload_cancelled": "Yükleme iptal edildi",
        "text_extracted": "Metin başarıyla çıkarıldı",
        "login.welcome": "Hoş Geldiniz",
        "login.description": "Devam etmek için lütfen giriş yapın",
        "login.google_signin": "Google ile Giriş Yap",
        "dashboard.no_history": "Kayıt bulunamadı",
        "dashboard.show_all": "Hepsini Göster",
        "dashboard.history": "Geçmiş",
        "dashboard.show_video": "Videoyu Göster",
        "dashboard.file_loading": "Dosya içeriği yükleniyor...",
        "dashboard.file_error": "Dosya içeriği alınamadı. Lütfen tekrar deneyin.",
        "dashboard.selected_file": "Seçilen Dosya",
        "dashboard.file_modal_close": "Kapat",
      }
    }
  },
    es: {
      translation: {
        app_name: "BrainRot",
        sponsor: "Patrocinador",
        create: "Crear",
        accepted_formats: "Los formatos aceptados son: {{formats}}",
        choose_file: "Elige un archivo",
        file_uploaded: "Archivo '{{fileName}}' subido con éxito.",
        selected_filename: "Archivo seleccionado: {{filename}}",
        invalid_file: "Tipo de archivo no válido. Por favor, sube un archivo compatible.",
        uploading_file: "Subiendo archivo...",
        upload_failed: "No se pudo subir el archivo. Inténtalo de nuevo.",
        file_too_large: "El archivo supera el tamaño máximo permitido de {{maxSize}} MB.",
        processing_file: "El archivo '{{fileName}}' está siendo procesado. Por favor, espera...",
        extracting_text: "Extrayendo texto...",
        generating_audio: "Generando audio...",
        pending_status: "Pendiente debido a carga del servidor. Por favor, espera...",
        unknown_status: "Ocurrió un error desconocido. Inténtalo de nuevo.",
        status_error: "Error al obtener el estado. Inténtalo de nuevo.",
        note_text: "Nota:",
        create_new: "Crear Nuevo",
        section_0_title: "Una solución divertida para tus problemas de estudio",
        section_0_body: "¿Alguna vez has querido pasar horas en TikTok, pero los exámenes no te dejan respirar? Lo entendemos, estudiar puede sentirse como una carga. Aquí es donde entra BrainRot. Con BrainRot, no tienes que elegir entre estudiar y divertirte. Hemos descifrado cómo hacer que el estudio sea algo que realmente disfrutes. Tus materiales de estudio se transforman con creatividad—ya no es solo trabajo, ¡es diversión!",
        section_0_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_1.mp4",
        section_1_title: "Estudia de forma inteligente, no aburrida",
        section_1_body: "Parece demasiado bueno para ser cierto, pero créeme: con BrainRot, estudiar puede ser divertido. Así funciona: la IA de BrainRot toma tus materiales de estudio, los convierte en una locución y los combina con clips de videojuegos virales y adictivos—como los que no puedes dejar de ver. Imagina prepararte para los exámenes mientras te entretienes con tus clips favoritos. Nada de distraerte o postergar más. BrainRot te mantiene enfocado, entretenido y listo para arrasar en tus exámenes.",
        section_1_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_2.mp4",
        section_2_title: "Tu aventura de estudio personalizada",
        section_2_body: "Y lo mejor: cuando este video termine, serás redirigido a la página de creación; tu centro de mando BrainRot. Sube tus materiales—PDFs, Word, PowerPoint o texto simple—y observa cómo BrainRot hace su magia. En segundos, tendrás un video de estudio hecho a medida. Rápido, divertido y para ti. ¿Qué esperas? Hagamos del estudio algo que quieras hacer. Haz clic y prueba BrainRot—¡no te arrepentirás!",
        section_2_video: "https://gitlab.com/atakanakin/shortvideos/-/raw/main/onboarding_3.mp4",
        "dashboard.title": "Panel",
        "dashboard.profile": "Perfil",
        "dashboard.tokens": "Uso de tokens",
        "dashboard.remaining": "Restante",
        "dashboard.premium": "Suscripción Premium",
        "dashboard.premium_description": "Tienes una suscripción premium",
        "dashboard.free": "Suscripción Gratuita",
        "dashboard.free_description": "Tienes una suscripción gratuita",
        "dashboard.premium_features": "¡Próximamente! Las funciones premium estarán disponibles pronto.",
        "dashboard.unlock_premium": "Desbloquear Premium",
        "dashboard.actions": "Acciones Rápidas",
        "dashboard.create_new": "Crear Nuevo",
        "dashboard.logout": "Cerrar Sesión",
        "common.loading": "Cargando...",
        "login.signin": "Iniciar sesión",
        "login.title": "Inicio de sesión",
        "login.google": "Iniciar sesión con Google",
        "error_occurred": "Ocurrió un error",
        "retry": "Reintentar",
        "uploading": "Subiendo...",
        "retry_upload": "Reintentar carga",
        "confirm_cancel": "¿Estás seguro de que deseas cancelar?",
        "upload_cancelled": "Carga cancelada",
        "text_extracted": "Texto extraído con éxito",
        "login.welcome": "Bienvenido",
        "login.description": "Por favor inicia sesión para continuar",
        "login.google_signin": "Iniciar sesión con Google",
        "dashboard.no_history": "No hay historial disponible",
        "dashboard.show_all": "Mostrar todo",
        "dashboard.history": "Historial",
        "dashboard.show_video": "Mostrar video",
        "dashboard.file_loading": "Cargando contenido del archivo...",
        "dashboard.file_error": "No se pudo obtener el contenido del archivo. Inténtalo de nuevo.",
        "dashboard.selected_file": "Archivo Seleccionado",
        "dashboard.file_modal_close": "Cerrar",
      }
    }
  },
  lng: "en",
  fallbackLng: "en",
  interpolation: {
    escapeValue: false
  }
});

export default i18n;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions