Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -111,21 +110,18 @@ fun codeViewerBlock(
.background(dividerColor),
)

// ── Code / text (no wrap, horizontal scroll) ──────────────────────────
Box(modifier = Modifier.weight(1f)) {
SelectionContainer {
Text(
text = highlightedCode,
style = MaterialTheme.typography.bodyMedium,
fontFamily = FontFamily.Monospace,
color = contentColor,
softWrap = false,
modifier = Modifier
.fillMaxWidth()
.horizontalScroll(hScrollState)
.padding(top = 12.dp, bottom = 20.dp, start = 12.dp, end = 12.dp),
)
}
Text(
text = highlightedCode,
style = MaterialTheme.typography.bodyMedium,
fontFamily = FontFamily.Monospace,
color = contentColor,
softWrap = false,
modifier = Modifier
.fillMaxWidth()
.horizontalScroll(hScrollState)
.padding(top = 12.dp, bottom = 20.dp, start = 12.dp, end = 12.dp),
)
}
}
}
6 changes: 5 additions & 1 deletion desktop-shared/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ settings.model.filtered=Showing {0} of {1} models
settings.model.no.match=No models match your search
settings.model.no.results=No models match your search
settings.configure.title=Configure {0} Settings
settings.test.connection=Test Connection
settings.test.connection.testing=Testing...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=Could not connect to the provider. Please verify your API key is correct (for cloud providers) or your base URL is reachable (for local providers). You can find setup instructions using the help link above.

# Directives Dialog
directive.manage.title=Manage Directives
Expand Down Expand Up @@ -785,6 +785,10 @@ provider.lmstudio.baseurl.description=The base URL for your LMStudio instance (d
provider.lmstudio.setup.help=💡To use LMStudio, you need to have it running locally.\n\n1. Install LMStudio from: https://lmstudio.ai/\n2. Start the local server\n3. Optionally configure the base URL if not using default
provider.lmstudio.openai.compat.info=Askimo uses OpenAI-compatible endpoints (/v1), not the native LMStudio API (/api/v1/).

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=The base URL for your OpenAI Compatible instance
provider.openai_compatible.apikey.stored=API key already stored securely. Leave blank to keep existing key, or enter a new one to update.

# System Resources
system.memory=Memory
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ settings.model.filtered={0} von {1} Modellen angezeigt
settings.model.no.match=Keine passenden Modelle
settings.model.no.results=Keine passenden Modelle
settings.configure.title={0} konfigurieren
settings.test.connection=Verbindung testen
settings.test.connection.testing=Teste...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=Verbindung zum Anbieter konnte nicht hergestellt werden. Bitte überprüfen Sie, ob Ihr API-Schlüssel korrekt ist (für Cloud-Anbieter) oder Ihre Basis-URL erreichbar ist (für lokale Anbieter). Installationsanweisungen finden Sie über den obigen Hilfe-Link.

# Directives Dialog
directive.manage.title=Direktiven verwalten
Expand Down Expand Up @@ -789,6 +789,10 @@ provider.lmstudio.baseurl.description=LMStudio Basis-URL (Standard: http://local
provider.lmstudio.setup.help=💡 So verwenden Sie LMStudio:\n\n1. Installieren: https://lmstudio.ai/\n2. Lokalen Server starten\n3. Basis-URL bei Bedarf ändern
provider.lmstudio.openai.compat.info=Askimo verwendet OpenAI-kompatible Endpunkte (/v1), nicht die native LMStudio-API (/api/v1/).

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=Die Basis-URL für Ihre OpenAI-kompatible Instanz
provider.openai_compatible.apikey.stored=Der API-Schlüssel ist bereits sicher gespeichert. Lassen Sie das Feld leer, um den bestehenden Schlüssel zu behalten, oder geben Sie einen neuen ein, um ihn zu aktualisieren.

# System Resources
system.memory=Speicher
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ settings.model.filtered=Mostrando {0} de {1} modelos
settings.model.no.match=No hay coincidencias
settings.model.no.results=No hay coincidencias
settings.configure.title=Configurar {0}
settings.test.connection=Probar conexión
settings.test.connection.testing=Probando...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=No se pudo conectar al proveedor. Verifique que su clave API sea correcta (para proveedores en la nube) o que su URL base sea accesible (para proveedores locales). Puede encontrar instrucciones de configuración usando el enlace de ayuda de arriba.

# Directives Dialog
directive.manage.title=Gestionar directivas
Expand Down Expand Up @@ -788,6 +788,10 @@ provider.lmstudio.baseurl.description=Base URL de LMStudio (por defecto: http://
provider.lmstudio.setup.help=💡 Para usar LMStudio:\n\n1. Instálalo desde: https://lmstudio.ai/\n2. Ejecuta el servidor local\n3. Ajusta la URL base si es necesario
provider.lmstudio.openai.compat.info=Askimo utiliza los endpoints compatibles con OpenAI (/v1), no la API nativa de LMStudio (/api/v1/).

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=La URL base para su instancia compatible con OpenAI
provider.openai_compatible.apikey.stored=La clave API ya está almacenada de forma segura. Déjelo en blanco para mantener la clave existente o introduzca una nueva para actualizarla.

# System Resources
system.memory=Memoria
system.cpu=CPU
Expand Down
8 changes: 6 additions & 2 deletions desktop-shared/src/main/resources/i18n/messages_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,9 @@ settings.model.filtered=Affichage de {0} sur {1} modèles
settings.model.no.match=Aucun modèle correspondant
settings.model.no.results=Aucun modèle correspondant
settings.configure.title=Configurer {0}
settings.test.connection=Tester la connexion
settings.test.connection.testing=Test en cours...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=Impossible de se connecter au fournisseur. Veuillez vérifier que votre clé API est correcte (pour les fournisseurs cloud) ou que votre URL de base est accessible (pour les fournisseurs locaux). Vous pouvez trouver des instructions de configuration en utilisant le lien d'aide ci-dessus.

# Directives Dialog
directive.manage.title=Gérer les directives
Expand Down Expand Up @@ -790,6 +790,10 @@ provider.lmstudio.baseurl.description=Base URL LMStudio (défaut : http://localh
provider.lmstudio.setup.help=💡 Pour utiliser LMStudio :\n\n1. Installez : https://lmstudio.ai/\n2. Lancez le serveur local\n3. Modifier l’URL de base si nécessaire
provider.lmstudio.openai.compat.info=Askimo utilise les points de terminaison compatibles OpenAI (/v1), pas l’API LMStudio native (/api/v1/).

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=L'URL de base pour votre instance compatible OpenAI
provider.openai_compatible.apikey.stored=La clé API est déjà stockée en toute sécurité. Laissez vide pour conserver la clé existante, ou saisissez-en une nouvelle pour la mettre à jour.

# System Resources
system.memory=Mémoire
system.cpu=CPU
Expand Down Expand Up @@ -822,7 +826,7 @@ telemetry.llm.col.provider=Fournisseur
telemetry.llm.col.model=Modèle
telemetry.llm.col.calls=Appels
telemetry.llm.col.tokens=Tokens
telemetry.llm.col.avg.duration=Durée Moy.
telemetry.llm.col.avg.duration=Durée Moy
telemetry.llm.col.errors=Erreurs
telemetry.llm.col.total=Total

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ settings.model.filtered={0}/{1} モデル表示中
settings.model.no.match=一致するモデルなし
settings.model.no.results=一致するモデルなし
settings.configure.title={0} 設定構成
settings.test.connection=接続テスト
settings.test.connection.testing=テスト中...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=プロバイダーに接続できませんでした。APIキーが正しいこと(クラウドプロバイダーの場合)、またはベースURLに到達可能であること(ローカルプロバイダーの場合)を確認してください。セットアップ手順については、上のヘルプリンクを使用してください。

# Directives Dialog
directive.manage.title=ディレクティブ管理
Expand Down Expand Up @@ -789,6 +789,10 @@ provider.lmstudio.baseurl.description=LMStudio ベース URL (デフォルト: h
provider.lmstudio.setup.help=💡 LMStudio の利用方法:\n\n1. https://lmstudio.ai/ でインストール\n2. ローカルサーバーを起動\n3. 必要に応じてベース URL を変更
provider.lmstudio.openai.compat.info=Askimo はネイティブ LMStudio API(/api/v1/)ではなく、OpenAI 互換エンドポイント(/v1)を使用します。

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=OpenAI互換インスタンスのベースURL
provider.openai_compatible.apikey.stored=APIキーはすでに安全に保存されています。既存のキーを保持する場合は空白のままにし、更新する場合は新しいキーを入力してください。

# System Resources
system.memory=メモリ
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ settings.model.filtered={0}/{1} 모델 표시 중
settings.model.no.match=일치하는 모델 없음
settings.model.no.results=일치하는 모델 없음
settings.configure.title={0} 설정 구성
settings.test.connection=연결 테스트
settings.test.connection.testing=테스트 중...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=제공자에 연결할 수 없습니다. API 키가 올바른지(클라우드 제공자의 경우) 또는 기본 URL에 도달할 수 있는지(로컬 제공자의 경우) 확인하십시오. 위의 도움말 링크를 사용하여 설정 지침을 찾을 수 있습니다.

# Directives Dialog
directive.manage.title=지시문 관리
Expand Down Expand Up @@ -788,6 +788,10 @@ provider.lmstudio.baseurl.description=LMStudio 기본 URL (기본값: http://loc
provider.lmstudio.setup.help=💡 LMStudio 사용 방법:\n\n1. https://lmstudio.ai/ 에서 설치\n2. 로컬 서버 실행\n3. 필요 시 기본 URL 변경
provider.lmstudio.openai.compat.info=Askimo는 기본 LMStudio API(/api/v1/)가 아닌 OpenAI 호환 엔드포인트(/v1)를 사용합니다.

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=OpenAI 호환 인스턴스의 기본 URL
provider.openai_compatible.apikey.stored=API 키가 이미 안전하게 저장되었습니다. 기존 키를 유지하려면 비워두고, 업데이트하려면 새 키를 입력하세요.

# System Resources
system.memory=메모리
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,9 @@ settings.model.filtered=Mostrando {0} de {1} modelos
settings.model.no.match=Nenhum modelo corresponde à pesquisa
settings.model.no.results=Nenhum modelo corresponde à pesquisa
settings.configure.title=Configurar {0}
settings.test.connection=Testar Conexão
settings.test.connection.testing=Testando...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=Não foi possível conectar ao provedor. Verifique se a sua chave API está correta (para provedores em nuvem) ou se a sua URL base está acessível (para provedores locais). Você pode encontrar instruções de configuração usando o link de ajuda acima.

# Directives Dialog
directive.manage.title=Gerenciar Diretivas
Expand Down Expand Up @@ -790,6 +790,10 @@ provider.lmstudio.baseurl.description=Base URL do LMStudio (padrão: http://loca
provider.lmstudio.setup.help=💡 Para usar o LMStudio:\n\n1. Instale: https://lmstudio.ai/\n2. Inicie o servidor local\n3. Configure o Base URL se necessário
provider.lmstudio.openai.compat.info=O Askimo usa os endpoints compatíveis com OpenAI (/v1), não a API nativa do LMStudio (/api/v1/).

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=A URL base para a sua instância compatível com OpenAI
provider.openai_compatible.apikey.stored=Chave API já armazenada com segurança. Deixe em branco para manter a chave existente ou insira uma nova para atualizar.

# System Resources
system.memory=Memória
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ settings.model.filtered=Hiển thị {0}/{1} mô hình
settings.model.no.match=Không có mô hình phù hợp
settings.model.no.results=Không có mô hình phù hợp
settings.configure.title=Cấu hình {0}
settings.test.connection=Kiểm tra kết nối
settings.test.connection.testing=Đang kiểm tra...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=Não foi possível conectar ao provedor. Verifique se a sua chave API está correta (para provedores em nuvem) ou se a sua URL base está acessível (para provedores locais). Você pode encontrar instruções de configuração usando o link de ajuda acima.

# Directives Dialog
directive.manage.title=Quản lý chỉ thị
Expand Down Expand Up @@ -788,6 +788,10 @@ provider.lmstudio.baseurl.description=Base URL LMStudio (mặc định http://lo
provider.lmstudio.setup.help=💡 Để dùng LMStudio:\n\n1. Cài từ https://lmstudio.ai/\n2. Chạy server cục bộ\n3. Tùy chọn thay đổi base URL
provider.lmstudio.openai.compat.info=Askimo sử dụng các endpoint tương thích OpenAI (/v1), không phải API LMStudio gốc (/api/v1/).

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=URL cơ sở cho phiên bản tương thích OpenAI của bạn
provider.openai_compatible.apikey.stored=Khóa API đã được lưu trữ an toàn. Để trống để giữ khóa hiện có hoặc nhập khóa mới để cập nhật.

# System Resources
system.memory=Bộ nhớ
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ settings.model.filtered=显示 {0}/{1} 个模型
settings.model.no.match=无匹配模型
settings.model.no.results=无匹配模型
settings.configure.title=配置 {0}
settings.test.connection=测试连接
settings.test.connection.testing=正在测试...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=无法连接到提供商。请验证您的 API 密钥是否正确(对于云提供商)或您的基础 URL 是否可达(对于本地提供商)。您可以使用上面的帮助链接找到设置说明。

# Directives Dialog
directive.manage.title=管理指令
Expand Down Expand Up @@ -789,6 +789,10 @@ provider.lmstudio.baseurl.description=LMStudio 基础 URL(默认 http://localh
provider.lmstudio.setup.help=使用 LMStudio:\n\n1. 安装:https://lmstudio.ai/\n2. 启动本地服务\n3. 可选更改基础 URL
provider.lmstudio.openai.compat.info=Askimo 使用 OpenAI 兼容端点(/v1),而非 LMStudio 原生 API(/api/v1/)。

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=您的OpenAI兼容实例的基础URL
provider.openai_compatible.apikey.stored=API密钥已安全存储。留空以保留现有密钥,或输入新密钥进行更新。

# System Resources
system.memory=内存
system.cpu=CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ settings.model.filtered=顯示 {0} / {1} 個模型
settings.model.no.match=沒有符合的模型
settings.model.no.results=沒有符合的模型
settings.configure.title=設定 {0}
settings.test.connection=測試連線
settings.test.connection.testing=測試中...
settings.placeholder.baseurl=http://localhost:11434
provider.connection.failed=無法連接到提供商。請驗證您的 API 金鑰是否正確(對於雲端提供商)或您的基礎 URL 是否可達(對於本地提供商)。您可以使用上面的幫助連結找到設定說明。

# Directives Dialog
directive.manage.title=管理指令
Expand Down Expand Up @@ -789,6 +789,10 @@ provider.lmstudio.baseurl.description=您的 LMStudio 基本 URL(預設:http
provider.lmstudio.setup.help=💡 若要使用 LMStudio:\n\n1. 安裝:https://lmstudio.ai/\n2. 啟動本機伺服器\n3. 若需要,調整基本 URL
provider.lmstudio.openai.compat.info=Askimo 使用 OpenAI 相容端點(/v1),而非 LMStudio 原生 API(/api/v1/)。

# Provider Configuration - Open AI Compatible
provider.openai_compatible.baseurl.description=您的OpenAI相容執行個體的基礎URL
provider.openai_compatible.apikey.stored=API金鑰已安全儲存。留空以保留現有金鑰,或輸入新金鑰進行更新。

# System Resources
system.memory=記憶體
system.cpu=CPU
Expand Down
Loading
Loading