/// <summary> /// Sets the no translate template for post processor. /// </summary> /// <param name="patterns">List of patterns for the current language that can be used to fix some translation errors.</param> public void SetPostProcessorTemplate(List <string> patterns) { _postProcessor = new PostProcessTranslator(patterns); }
/// <summary> /// Creates a new <see cref="Translator"/> object. /// </summary> /// <param name="apiKey">Your subscription key for the Microsoft Translator Text API.</param> public Translator(string apiKey) { _authToken = new AzureAuthToken(apiKey); _postProcessor = new PostProcessTranslator(); }