🐛 Fixes of translation api

This commit is contained in:
2025-07-31 20:25:04 +08:00
parent d7dcb7221f
commit 77df275ac0
4 changed files with 17 additions and 10 deletions

View File

@@ -2,5 +2,5 @@ namespace DysonNetwork.Sphere.Translation;
public interface ITranslationProvider
{
public Task<string> Translate(string text, string targetLanguage);
public Task<string> Translate(string text, string targetLanguage, string? sourceLanguage = null);
}