252 lines
9.4 KiB
TypeScript
252 lines
9.4 KiB
TypeScript
import { defaultEnglish, defaultGerman, type MiniLitRequiredMessages, setTranslations } from "@mariozechner/mini-lit";
|
|
|
|
declare module "@mariozechner/mini-lit" {
|
|
interface i18nMessages extends MiniLitRequiredMessages {
|
|
Free: string;
|
|
"Input Required": string;
|
|
Cancel: string;
|
|
Confirm: string;
|
|
"Select Model": string;
|
|
"Search models...": string;
|
|
Format: string;
|
|
Thinking: string;
|
|
Vision: string;
|
|
You: string;
|
|
Assistant: string;
|
|
"Thinking...": string;
|
|
"Type your message...": string;
|
|
"API Keys Configuration": string;
|
|
"Configure API keys for LLM providers. Keys are stored locally in your browser.": string;
|
|
Configured: string;
|
|
"Not configured": string;
|
|
"✓ Valid": string;
|
|
"✗ Invalid": string;
|
|
"Testing...": string;
|
|
Update: string;
|
|
Test: string;
|
|
Remove: string;
|
|
Save: string;
|
|
"Update API key": string;
|
|
"Enter API key": string;
|
|
"Type a message...": string;
|
|
"Failed to fetch file": string;
|
|
"Invalid source type": string;
|
|
PDF: string;
|
|
Document: string;
|
|
Presentation: string;
|
|
Spreadsheet: string;
|
|
Text: string;
|
|
"Error loading file": string;
|
|
"No text content available": string;
|
|
"Failed to load PDF": string;
|
|
"Failed to load document": string;
|
|
"Failed to load spreadsheet": string;
|
|
"No content available": string;
|
|
"Failed to display text content": string;
|
|
"API keys are required to use AI models. Get your keys from the provider's website.": string;
|
|
console: string;
|
|
"Copy output": string;
|
|
"Copied!": string;
|
|
"Error:": string;
|
|
"Request aborted": string;
|
|
Call: string;
|
|
Result: string;
|
|
"(no result)": string;
|
|
"Waiting for tool result…": string;
|
|
"Call was aborted; no result.": string;
|
|
"No session available": string;
|
|
"No session set": string;
|
|
"Preparing tool parameters...": string;
|
|
"(no output)": string;
|
|
"Writing expression...": string;
|
|
Calculating: string;
|
|
"Getting current time in": string;
|
|
"Getting current date and time": string;
|
|
"Writing command...": string;
|
|
"Running command:": string;
|
|
"Command failed:": string;
|
|
"Enter Auth Token": string;
|
|
"Please enter your auth token.": string;
|
|
"Auth token is required for proxy transport": string;
|
|
// JavaScript REPL strings
|
|
"Execution aborted": string;
|
|
"Code parameter is required": string;
|
|
"Unknown error": string;
|
|
"Code executed successfully (no output)": string;
|
|
"Execution failed": string;
|
|
"JavaScript REPL": string;
|
|
"JavaScript code to execute": string;
|
|
"Writing JavaScript code...": string;
|
|
"Executing JavaScript": string;
|
|
}
|
|
}
|
|
|
|
const translations = {
|
|
en: {
|
|
...defaultEnglish,
|
|
Free: "Free",
|
|
"Input Required": "Input Required",
|
|
Cancel: "Cancel",
|
|
Confirm: "Confirm",
|
|
"Select Model": "Select Model",
|
|
"Search models...": "Search models...",
|
|
Format: "Format",
|
|
Thinking: "Thinking",
|
|
Vision: "Vision",
|
|
You: "You",
|
|
Assistant: "Assistant",
|
|
"Thinking...": "Thinking...",
|
|
"Type your message...": "Type your message...",
|
|
"API Keys Configuration": "API Keys Configuration",
|
|
"Configure API keys for LLM providers. Keys are stored locally in your browser.":
|
|
"Configure API keys for LLM providers. Keys are stored locally in your browser.",
|
|
Configured: "Configured",
|
|
"Not configured": "Not configured",
|
|
"✓ Valid": "✓ Valid",
|
|
"✗ Invalid": "✗ Invalid",
|
|
"Testing...": "Testing...",
|
|
Update: "Update",
|
|
Test: "Test",
|
|
Remove: "Remove",
|
|
Save: "Save",
|
|
"Update API key": "Update API key",
|
|
"Enter API key": "Enter API key",
|
|
"Type a message...": "Type a message...",
|
|
"Failed to fetch file": "Failed to fetch file",
|
|
"Invalid source type": "Invalid source type",
|
|
PDF: "PDF",
|
|
Document: "Document",
|
|
Presentation: "Presentation",
|
|
Spreadsheet: "Spreadsheet",
|
|
Text: "Text",
|
|
"Error loading file": "Error loading file",
|
|
"No text content available": "No text content available",
|
|
"Failed to load PDF": "Failed to load PDF",
|
|
"Failed to load document": "Failed to load document",
|
|
"Failed to load spreadsheet": "Failed to load spreadsheet",
|
|
"No content available": "No content available",
|
|
"Failed to display text content": "Failed to display text content",
|
|
"API keys are required to use AI models. Get your keys from the provider's website.":
|
|
"API keys are required to use AI models. Get your keys from the provider's website.",
|
|
console: "console",
|
|
"Copy output": "Copy output",
|
|
"Copied!": "Copied!",
|
|
"Error:": "Error:",
|
|
"Request aborted": "Request aborted",
|
|
Call: "Call",
|
|
Result: "Result",
|
|
"(no result)": "(no result)",
|
|
"Waiting for tool result…": "Waiting for tool result…",
|
|
"Call was aborted; no result.": "Call was aborted; no result.",
|
|
"No session available": "No session available",
|
|
"No session set": "No session set",
|
|
"Preparing tool parameters...": "Preparing tool parameters...",
|
|
"(no output)": "(no output)",
|
|
"Writing expression...": "Writing expression...",
|
|
Calculating: "Calculating",
|
|
"Getting current time in": "Getting current time in",
|
|
"Getting current date and time": "Getting current date and time",
|
|
"Writing command...": "Writing command...",
|
|
"Running command:": "Running command:",
|
|
"Command failed:": "Command failed:",
|
|
"Enter Auth Token": "Enter Auth Token",
|
|
"Please enter your auth token.": "Please enter your auth token.",
|
|
"Auth token is required for proxy transport": "Auth token is required for proxy transport",
|
|
// JavaScript REPL strings
|
|
"Execution aborted": "Execution aborted",
|
|
"Code parameter is required": "Code parameter is required",
|
|
"Unknown error": "Unknown error",
|
|
"Code executed successfully (no output)": "Code executed successfully (no output)",
|
|
"Execution failed": "Execution failed",
|
|
"JavaScript REPL": "JavaScript REPL",
|
|
"JavaScript code to execute": "JavaScript code to execute",
|
|
"Writing JavaScript code...": "Writing JavaScript code...",
|
|
"Executing JavaScript": "Executing JavaScript",
|
|
},
|
|
de: {
|
|
...defaultGerman,
|
|
Free: "Kostenlos",
|
|
"Input Required": "Eingabe erforderlich",
|
|
Cancel: "Abbrechen",
|
|
Confirm: "Bestätigen",
|
|
"Select Model": "Modell auswählen",
|
|
"Search models...": "Modelle suchen...",
|
|
Format: "Formatieren",
|
|
Thinking: "Thinking",
|
|
Vision: "Vision",
|
|
You: "Sie",
|
|
Assistant: "Assistent",
|
|
"Thinking...": "Denkt nach...",
|
|
"Type your message...": "Geben Sie Ihre Nachricht ein...",
|
|
"API Keys Configuration": "API-Schlüssel-Konfiguration",
|
|
"Configure API keys for LLM providers. Keys are stored locally in your browser.":
|
|
"Konfigurieren Sie API-Schlüssel für LLM-Anbieter. Schlüssel werden lokal in Ihrem Browser gespeichert.",
|
|
Configured: "Konfiguriert",
|
|
"Not configured": "Nicht konfiguriert",
|
|
"✓ Valid": "✓ Gültig",
|
|
"✗ Invalid": "✗ Ungültig",
|
|
"Testing...": "Testet...",
|
|
Update: "Aktualisieren",
|
|
Test: "Testen",
|
|
Remove: "Entfernen",
|
|
Save: "Speichern",
|
|
"Update API key": "API-Schlüssel aktualisieren",
|
|
"Enter API key": "API-Schlüssel eingeben",
|
|
"Type a message...": "Nachricht eingeben...",
|
|
"Failed to fetch file": "Datei konnte nicht abgerufen werden",
|
|
"Invalid source type": "Ungültiger Quellentyp",
|
|
PDF: "PDF",
|
|
Document: "Dokument",
|
|
Presentation: "Präsentation",
|
|
Spreadsheet: "Tabelle",
|
|
Text: "Text",
|
|
"Error loading file": "Fehler beim Laden der Datei",
|
|
"No text content available": "Kein Textinhalt verfügbar",
|
|
"Failed to load PDF": "PDF konnte nicht geladen werden",
|
|
"Failed to load document": "Dokument konnte nicht geladen werden",
|
|
"Failed to load spreadsheet": "Tabelle konnte nicht geladen werden",
|
|
"No content available": "Kein Inhalt verfügbar",
|
|
"Failed to display text content": "Textinhalt konnte nicht angezeigt werden",
|
|
"API keys are required to use AI models. Get your keys from the provider's website.":
|
|
"API-Schlüssel sind erforderlich, um KI-Modelle zu verwenden. Holen Sie sich Ihre Schlüssel von der Website des Anbieters.",
|
|
console: "Konsole",
|
|
"Copy output": "Ausgabe kopieren",
|
|
"Copied!": "Kopiert!",
|
|
"Error:": "Fehler:",
|
|
"Request aborted": "Anfrage abgebrochen",
|
|
Call: "Aufruf",
|
|
Result: "Ergebnis",
|
|
"(no result)": "(kein Ergebnis)",
|
|
"Waiting for tool result…": "Warte auf Tool-Ergebnis…",
|
|
"Call was aborted; no result.": "Aufruf wurde abgebrochen; kein Ergebnis.",
|
|
"No session available": "Keine Sitzung verfügbar",
|
|
"No session set": "Keine Sitzung gesetzt",
|
|
"Preparing tool parameters...": "Bereite Tool-Parameter vor...",
|
|
"(no output)": "(keine Ausgabe)",
|
|
"Writing expression...": "Schreibe Ausdruck...",
|
|
Calculating: "Berechne",
|
|
"Getting current time in": "Hole aktuelle Zeit in",
|
|
"Getting current date and time": "Hole aktuelles Datum und Uhrzeit",
|
|
"Writing command...": "Schreibe Befehl...",
|
|
"Running command:": "Führe Befehl aus:",
|
|
"Command failed:": "Befehl fehlgeschlagen:",
|
|
"Enter Auth Token": "Auth-Token eingeben",
|
|
"Please enter your auth token.": "Bitte geben Sie Ihr Auth-Token ein.",
|
|
"Auth token is required for proxy transport": "Auth-Token ist für Proxy-Transport erforderlich",
|
|
// JavaScript REPL strings
|
|
"Execution aborted": "Ausführung abgebrochen",
|
|
"Code parameter is required": "Code-Parameter ist erforderlich",
|
|
"Unknown error": "Unbekannter Fehler",
|
|
"Code executed successfully (no output)": "Code erfolgreich ausgeführt (keine Ausgabe)",
|
|
"Execution failed": "Ausführung fehlgeschlagen",
|
|
"JavaScript REPL": "JavaScript REPL",
|
|
"JavaScript code to execute": "Auszuführender JavaScript-Code",
|
|
"Writing JavaScript code...": "Schreibe JavaScript-Code...",
|
|
"Executing JavaScript": "Führe JavaScript aus",
|
|
},
|
|
};
|
|
|
|
setTranslations(translations);
|
|
|
|
export * from "@mariozechner/mini-lit/dist/i18n.js";
|