Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

.NET Cloud Translation API Samples

A collection of samples that demonstrate how to call the Google Cloud Translation API from C#.

Build and Run

  1. Follow the instructions in the root README.

  2. Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Google Cloud Translation API.

  3. Open Translate.sln with Microsoft Visual Studio version 2012 or later.

  4. Build the Solution.

  5. From the command line, run QuickStart.exe:

    PS C:\..\dotnet-docs-samples\translate\api\QuickStart\bin\Debug> .\QuickStart.exe
    Привет мир.
    
  6. And run Translate to translate text.

    PS C:\..\dotnet-docs-samples\translate\api\Translate\bin\Debug> .\Translate.exe translate "Old shoes."
    Старые ботинки.
    PS C:\..\dotnet-docs-samples\translate\api\Translate\bin\Debug> .\Translate.exe
    Translate 1.0.0.0
    Copyright ©  2017
    
    ERROR(S):
      No verb selected.
    
      translate    Translate text.
    
      list         List available languages.
    
      detect       Detects which language some text is written in.
    
      help         Display more information on a specific command.
    
      version      Display version information.
    
    

Contributing changes

Licensing

Testing