Language Cloud PowerShell Toolkit

Language Cloud PowerShell Toolkit

By Trados AppStore Team

Free

Description

The Language Cloud PowerShell Toolkit enables users to automate and manage various operations within Language Cloud through PowerShell scripts. By utilising the Language Cloud REST API, this toolkit provides a convenient and efficient way to handle tasks such as project creation, resource handling, and some administration overview directly from the PowerShell console.

Key features include streamlined project creation and project template updates, translation memory management, terminology management and an overview of users, users and workflows. With sample scripts and detailed help documentation, users can easily set up, customise, and run automation tasks to simplify their workflow.

Minimum Requirement: Must have access to Language Cloud Team tenant with relevant access rights based on user role.

Technical details

1.0.1.0 - Trados Studio cloud capabilities, Trados Accelerate, Trados Team, Trados Enterprise

Support website:

Support e-mail:

Shared products:

  • Trados Studio

1.0.1.0 - Trados Studio cloud capabilities(), Trados Accelerate(), Trados Team(), Trados Enterprise()

  • Implemented a WIX Installer for the toolkit

1.0.0.0 - Trados Studio (2024, 2022), Trados Studio cloud capabilities(), Trados Team()

  • Initial release



This documentation provides details on importing and using PowerShell modules included in the toolkit. Full instructions and user documentation is provided through the README to the GitHub Repository for this Toolkit.

Overview

The Language Cloud PowerShell Toolkit integrates with Language Cloud enabling users to script and automate actions using the publicly available APIs. The purpose of this toolkit is to automate project creation and retrieve essential resources through the PowerShell console.

Toolkit Components
  • Modules: AuthenticationHelper, ProjectServerHelper, ResourcesHelper, UserManagerHelper, FileManagementHelper, WorkflowHelper and ReportingHelper. Each module contains functions to handle specific Language Cloud operations.
  • Scripts: Sample scripts like Sample_Roundtrip.ps1 demonstrate practical usage of the toolkit for common tasks such as creating and managing projects.
  • Samples: Example files included to illustrate typical automation workflows.
Getting Started

Requirements:

  • PowerShell Version 7.4 or Higher
  • Access to Language Cloud with adequite user rights and permissions 

Installation:

  • Download the toolkit files.
  • Unblock the downloaded files as needed.
  • Create necessary directories in your PowerShell user folder, such as Documents\PowerShell\Modules.
  • Copy the relevant script and module files to the designated directories.
Configuration

After obtaining your Client ID, Client Secret, and Tenant ID update the script with the retrieved values. Example Sample_Roundtrip.ps1

Authentication

The Get-AccessKey function retrieves an authentication token and stores it as a PowerShell object for API use. To reduce repeated requests, it saves the token in a JSON file within the AuthenticationHelper module. Run

Get-AccessKey -id  "Your_ClientId" -secret "Your_ClientSecret" -lcTenant "YourLcTenant"
Running Scripts
  • Open PowerShell 7.4 or higher.
  • Set the execution policy to Unrestricted if required (Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser).
  • Navigate to the folder where the script (e.g., Sample_Roundtrip.ps1) is stored.
  • Run the script using .\Sample_Roundtrip.ps1.
Module Usage
  • Use the Get-Module command to verify if the required modules are available in your PowerShell environment
  • Import Modules
Import-Module -Name AuthenticationHelper
Import-Module -Name ProjectHelper 
Import-Module -Name ResourcesHelper 
Import-Module -Name UsersHelper 
Import-Module -Name TerminologyHelper  
  • Once imported, functions within each module can be executed for automating various operations.
Help & Troubleshooting
  • Use the Get-Help cmdlet to access detailed documentation for each function after the module is imported.
  • Ensure all file paths are correctly configured, and the required modules are available in the Documents\PowerShell\Modules directory.

For detailed guidance and information on available endpoints, please refer to the API Documentation.

Checkout other plugins from this developer:
Studio Subtitling

Free

Studio Subtitling

By Trados AppStore Team

The Problem this app addressesThe volume of audio visual content for localization is growing rapidly. Turnaround times are getting shorter and many of those working in the industry are feeling increased price pressures in dealing with this sort of content. Translation tools today lack proper context for subtitlers, offering poor support for the variety of file formats.The Solution this app providesThe Studio Subtitling plugin supports enhanced features for audio visual translation, editing, proofing and works synchronously with the Studio editor in support of the following filetypes:- ASS (available here on the RWS AppStore)- SRT (supported out of the box in Trados Studio 2021/2022/2024)- webVTT (supported out of the box in Trados Studio 2021/2022/2024)- STL (available here on the RWS AppStore)- SBV (supported out of the box in Trados Studio 2021/2022/2024)- TTML (supported out of the box in Trados Studio 2021/2022/2024)NOTE:The plugin does not work with single document projects, resulting in errors. To use it properly, you need to create standard projects.It is not possible to use the numpad for non-subtitling files if this plugin is installed. This is a limitation of Studio. The workaround is to remove the keyboard shortcuts for numpad in the Studio options. They can be reset when needed by using "Reset to Defaults" in the Subtitling Keyboard shortcut list.Click here to download the TQA model for Trados Studio that is also supported by this plugin.