docs: Add Cloud Code tags for API Explorer pilot
This adds region tags in order to support the upcoming Cloud Code API Explorer pilot
package v3
// [START translate_v3_translate_text]
+// [START translate_v3_translate_text_0]
import (
"context"
"fmt"
@@ -25,6 +26,9 @@ import (
translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3"
)
+// [END translate_v3_translate_text_0]
+
+// [START translate_v3_translate_text_1]
// translateText translates input text and returns translated text.
func translateText(w io.Writer, projectID string, sourceLang string, targetLang string, text string) error {
// projectID := "my-project-id"
@@ -60,4 +64,6 @@ func translateText(w io.Writer, projectID string, sourceLang string, targetLang
return nil
}
+// [END translate_v3_translate_text_1]
+
// [END translate_v3_translate_text]
