Skip to main content

@swamp/gcp/translate

v2026.04.23.1

Google Cloud translate infrastructure models

Repository

https://github.com/systeminit/swamp-extensions

Labels

gcpgoogle-cloudtranslatecloudinfrastructure

Contents

Quality score

Verified by Swamp

How well-documented and verifiable this extension is.

100%

Grade A

  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned

Install

$ swamp extension pull @swamp/gcp/translate

@swamp/gcp/translate/adaptivemtdatasetsv2026.04.23.1adaptivemtdatasets.ts

Global Arguments

ArgumentTypeDescription
displayName?stringThe name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
exampleCount?numberThe number of examples in the dataset.
name?stringIdentifier. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
sourceLanguageCode?stringThe BCP-47 language code of the source language.
targetLanguageCode?stringThe BCP-47 language code of the target language.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a adaptiveMtDatasets
getGet a adaptiveMtDatasets
ArgumentTypeDescription
identifierstringThe name of the adaptiveMtDatasets
deleteDelete the adaptiveMtDatasets
ArgumentTypeDescription
identifierstringThe name of the adaptiveMtDatasets
syncSync adaptiveMtDatasets state from GCP
import_adaptive_mt_fileimport adaptive mt file
ArgumentTypeDescription
fileInputSource?any
gcsInputSource?any

Resources

state(infinite)— An Adaptive MT Dataset.
@swamp/gcp/translate/adaptivemtdatasets-adaptivemtfilesv2026.04.23.1adaptivemtdatasets_adaptivemtfiles.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a adaptiveMtFiles
ArgumentTypeDescription
identifierstringThe name of the adaptiveMtFiles
deleteDelete the adaptiveMtFiles
ArgumentTypeDescription
identifierstringThe name of the adaptiveMtFiles
syncSync adaptiveMtFiles state from GCP

Resources

state(infinite)— An AdaptiveMtFile.
@swamp/gcp/translate/adaptivemtdatasets-adaptivemtfiles-adaptivemtsentencesv2026.04.23.1adaptivemtdatasets_adaptivemtfiles_adaptivemtsentences.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a adaptiveMtSentences
ArgumentTypeDescription
identifierstringThe name of the adaptiveMtSentences
syncSync adaptiveMtSentences state from GCP

Resources

state(infinite)— An AdaptiveMt sentence entry.
@swamp/gcp/translate/adaptivemtdatasets-adaptivemtsentencesv2026.04.23.1adaptivemtdatasets_adaptivemtsentences.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a adaptiveMtSentences
ArgumentTypeDescription
identifierstringThe name of the adaptiveMtSentences
syncSync adaptiveMtSentences state from GCP

Resources

state(infinite)— An AdaptiveMt sentence entry.
@swamp/gcp/translate/datasetsv2026.04.23.1datasets.ts

Global Arguments

ArgumentTypeDescription
displayName?stringThe name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
name?stringThe resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
sourceLanguageCode?stringThe BCP-47 language code of the source language.
targetLanguageCode?stringThe BCP-47 language code of the target language.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a datasets
getGet a datasets
ArgumentTypeDescription
identifierstringThe name of the datasets
deleteDelete the datasets
ArgumentTypeDescription
identifierstringThe name of the datasets
syncSync datasets state from GCP
export_dataexport data
ArgumentTypeDescription
outputConfig?any
import_dataimport data
ArgumentTypeDescription
inputConfig?any

Resources

state(infinite)— A dataset that hosts the examples (sentence pairs) used for translation models.
@swamp/gcp/translate/datasets-examplesv2026.04.23.1datasets_examples.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a examples
ArgumentTypeDescription
identifierstringThe name of the examples
syncSync examples state from GCP

Resources

state(infinite)— A sentence pair.
@swamp/gcp/translate/glossariesv2026.04.23.1glossaries.ts

Global Arguments

ArgumentTypeDescription
displayName?stringOptional. The display name of the glossary.
inputConfig?objectInput configuration for glossaries.
languageCodesSet?objectUsed with equivalent term set glossaries.
languagePair?objectUsed with unidirectional glossaries.
name?stringIdentifier. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a glossaries
getGet a glossaries
ArgumentTypeDescription
identifierstringThe name of the glossaries
updateUpdate glossaries attributes
deleteDelete the glossaries
ArgumentTypeDescription
identifierstringThe name of the glossaries
syncSync glossaries state from GCP

Resources

state(infinite)— Represents a glossary built from user-provided data.
@swamp/gcp/translate/glossaries-glossaryentriesv2026.04.23.1glossaries_glossaryentries.ts

Global Arguments

ArgumentTypeDescription
description?stringDescribes the glossary entry.
name?stringIdentifier. The resource name of the entry. Format: `projects/*/locations/*/glossaries/*/glossaryEntries/*`
termsPair?objectRepresents a single entry for an unidirectional glossary.
termsSet?objectRepresents a single entry for an equivalent term set glossary. This is used for equivalent term sets where each term can be replaced by the other terms in the set.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a glossaryEntries
getGet a glossaryEntries
ArgumentTypeDescription
identifierstringThe name of the glossaryEntries
updateUpdate glossaryEntries attributes
deleteDelete the glossaryEntries
ArgumentTypeDescription
identifierstringThe name of the glossaryEntries
syncSync glossaryEntries state from GCP

Resources

state(infinite)— Represents a single entry in a glossary.
@swamp/gcp/translate/locationsv2026.04.23.1locations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
getGet a locations
ArgumentTypeDescription
identifierstringThe name of the locations
syncSync locations state from GCP
adaptive_mt_translateadaptive mt translate
ArgumentTypeDescription
content?any
dataset?any
glossaryConfig?any
referenceSentenceConfig?any
batch_translate_documentbatch translate document
ArgumentTypeDescription
customizedAttribution?any
enableRotationCorrection?any
enableShadowRemovalNativePdf?any
formatConversions?any
glossaries?any
inputConfigs?any
models?any
outputConfig?any
pdfNativeOnly?any
sourceLanguageCode?any
targetLanguageCodes?any
batch_translate_textbatch translate text
ArgumentTypeDescription
glossaries?any
inputConfigs?any
labels?any
models?any
outputConfig?any
sourceLanguageCode?any
targetLanguageCodes?any
detect_languagedetect language
ArgumentTypeDescription
content?any
documentInputConfig?any
labels?any
mimeType?any
model?any
get_supported_languagesget supported languages
refine_textrefine text
ArgumentTypeDescription
refinementEntries?any
sourceLanguageCode?any
targetLanguageCode?any
romanize_textromanize text
ArgumentTypeDescription
contents?any
sourceLanguageCode?any
translate_documenttranslate document
ArgumentTypeDescription
customizedAttribution?any
enableRotationCorrection?any
enableShadowRemovalNativePdf?any
formatConversions?any
glossaries?any
inputConfigs?any
models?any
outputConfig?any
pdfNativeOnly?any
sourceLanguageCode?any
targetLanguageCodes?any
translate_texttranslate text
ArgumentTypeDescription
glossaries?any
inputConfigs?any
labels?any
models?any
outputConfig?any
sourceLanguageCode?any
targetLanguageCodes?any

Resources

state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/translate/modelsv2026.04.23.1models.ts

Global Arguments

ArgumentTypeDescription
dataset?stringRequired. The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
displayName?stringThe name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
name?stringThe resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a models
getGet a models
ArgumentTypeDescription
identifierstringThe name of the models
deleteDelete the models
ArgumentTypeDescription
identifierstringThe name of the models
syncSync models state from GCP

Resources

state(infinite)— A trained translation model.