feat(ai): localize AI features

This commit is contained in:
Sepehr Ramezani
2026-02-15 17:38:16 +01:00
parent 8f9031f076
commit 9eb3bd912a
72 changed files with 17098 additions and 7759 deletions

View File

@@ -127,7 +127,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
<FeatureToggle
name={t('titleSuggestions.available').replace('💡 ', '')}
description="Suggest titles for untitled notes after 50+ words"
description={t('aiSettings.titleSuggestionsDesc')}
checked={settings.titleSuggestions}
onChange={(checked) => handleToggle('titleSuggestions', checked)}
/>
@@ -141,7 +141,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
<FeatureToggle
name={t('paragraphRefactor.title')}
description="AI-powered text improvement options"
description={t('aiSettings.paragraphRefactorDesc')}
checked={settings.paragraphRefactor}
onChange={(checked) => handleToggle('paragraphRefactor', checked)}
/>
@@ -159,7 +159,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
{t('aiSettings.frequency')}
</Label>
<p className="text-xs text-gray-500 mb-3">
How often to analyze note connections
{t('aiSettings.frequencyDesc')}
</p>
<RadioGroup
value={settings.memoryEchoFrequency}
@@ -192,7 +192,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
<Card className="p-4">
<Label className="text-base font-medium mb-1">{t('aiSettings.provider')}</Label>
<p className="text-sm text-gray-500 mb-4">
Choose your preferred AI provider
{t('aiSettings.providerDesc')}
</p>
<RadioGroup
@@ -206,7 +206,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
{t('aiSettings.providerAuto')}
</Label>
<p className="text-sm text-gray-500">
Ollama when available, OpenAI fallback
{t('aiSettings.providerAutoDesc')}
</p>
</div>
</div>
@@ -218,7 +218,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
{t('aiSettings.providerOllama')}
</Label>
<p className="text-sm text-gray-500">
100% private, runs locally on your machine
{t('aiSettings.providerOllamaDesc')}
</p>
</div>
</div>
@@ -230,7 +230,7 @@ export function AISettingsPanel({ initialSettings }: AISettingsPanelProps) {
{t('aiSettings.providerOpenAI')}
</Label>
<p className="text-sm text-gray-500">
Most accurate, requires API key
{t('aiSettings.providerOpenAIDesc')}
</p>
</div>
</div>