fix build err

This commit is contained in:
2025-07-05 15:31:04 +09:00
parent a6236661bf
commit e3c1cf4790
2 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,7 @@ impl OllamaTranslator {
Ok(translated.to_string())
}
#[allow(dead_code)]
fn build_translation_prompt(&self, text: &str, config: &TranslationConfig) -> Result<String> {
let source_info = self.language_mapping.get_language_info(&config.source_lang)
.ok_or_else(|| anyhow::anyhow!("Unsupported source language: {}", config.source_lang))?;