Exemple #1
0
 /// <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);
 }
Exemple #2
0
 public Translator(string apiKey)
 {
     _authToken     = new AzureAuthToken(apiKey);
     _postProcessor = new PostProcessTranslator();
 }