ITranslationContext.cs 760 B

1234567891011121314151617181920212223
  1. namespace XUnity.AutoTranslator.Plugin.Core.Endpoints
  2. {
  3. /// <summary>
  4. /// Interface used in the context of translating a text.
  5. /// </summary>
  6. public interface ITranslationContext : ITranslationContextBase
  7. {
  8. /// <summary>
  9. /// Completes the translation by providing the translated text.
  10. /// </summary>
  11. /// <param name="translatedText"></param>
  12. void Complete( string translatedText );
  13. /// <summary>
  14. /// Completes the translation by providing the translated texts.
  15. ///
  16. /// The indices of the translations must match the indices of the
  17. /// untranslated texts.
  18. /// </summary>
  19. /// <param name="translatedTexts"></param>
  20. void Complete( string[] translatedTexts );
  21. }
  22. }