A collection of samples that demonstrate how to call the Google Cloud Translation API from C#.
-
Follow the instructions in the root README.
-
Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Google Cloud Translation API.
-
Open Translate.sln with Microsoft Visual Studio version 2012 or later.
-
Build the Solution.
-
From the command line, run QuickStart.exe:
PS C:\..\dotnet-docs-samples\translate\api\QuickStart\bin\Debug> .\QuickStart.exe Привет мир. -
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.
- See CONTRIBUTING.md
- See LICENSE
- See TESTING.md