little modify

This commit is contained in:
Julian Freeman
2026-02-22 17:45:16 -04:00
parent 93ca9a50d9
commit bac7428fde
6 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "gemmatrans-client",
"private": true,
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"scripts": {
"dev": "vite",

2
src-tauri/Cargo.lock generated
View File

@@ -1236,7 +1236,7 @@ dependencies = [
[[package]]
name = "gemmatrans-client"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"serde",
"serde_json",

View File

@@ -1,6 +1,6 @@
[package]
name = "gemmatrans-client"
version = "0.1.1"
version = "0.1.2"
description = "A Tauri App"
authors = ["you"]
edition = "2021"

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "gemmatrans-client",
"version": "0.1.1",
"version": "0.1.2",
"identifier": "top.volan.gemmatrans-client",
"build": {
"beforeDevCommand": "pnpm dev",

View File

@@ -188,7 +188,7 @@ const translate = async () => {
<header class="h-14 border-b bg-white flex items-center justify-between px-6 shrink-0 sticky top-0 z-10 shadow-sm">
<div class="flex items-center gap-2 cursor-pointer group" @click="view = 'translate'">
<Languages class="w-6 h-6 text-blue-600 group-hover:scale-110 transition-transform" />
<h1 class="font-semibold text-lg tracking-tight">GemmaTrans</h1>
<h1 class="font-semibold text-lg tracking-tight">TranslateGemma</h1>
</div>
<div class="flex items-center gap-2">
<button
@@ -392,7 +392,7 @@ const translate = async () => {
</div>
<textarea
v-model="settings.systemPromptTemplate"
rows="8"
rows="9"
class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-mono text-xs leading-relaxed"
></textarea>
<div class="flex flex-wrap gap-2 mt-2">

View File

@@ -28,6 +28,7 @@ export const LANGUAGES: Language[] = [
export const DEFAULT_TEMPLATE = `You are a professional {SOURCE_LANG} ({SOURCE_CODE}) to {TARGET_LANG} ({TARGET_CODE}) translator. Your goal is to accurately convey the meaning and nuances of the original {SOURCE_LANG} text while adhering to {TARGET_LANG} grammar, vocabulary, and cultural sensitivities.
Produce only the {TARGET_LANG} translation, without any additional explanations or commentary. Please translate the following {SOURCE_LANG} text into {TARGET_LANG}:
{TEXT}`;
export const useSettingsStore = defineStore('settings', () => {