Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crowdin/crowdin-api-client

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crowdin/crowdin-api-client - npm Package Compare versions

Comparing version 1.37.1 to 1.38.0

17

out/translations/index.d.ts

@@ -1,2 +0,2 @@

import { CrowdinApi, DownloadLink, PaginationOptions, ResponseList, ResponseObject, Status } from '../core';
import { CrowdinApi, DownloadLink, PaginationOptions, PatchRequest, ResponseList, ResponseObject, Status } from '../core';
/**

@@ -11,2 +11,8 @@ * Translators can work with entirely untranslated project or you can pre-translate the files to ease the translations process.

* @param projectId project identifier
* @param options optional parameters for the request
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.pre-translations.getMany
*/
listPreTranslations(projectId: number, options?: PaginationOptions): Promise<ResponseList<Status<TranslationsModel.PreTranslationStatusAttributes>>>;
/**
* @param projectId project identifier
* @param preTranslationId pre translation identifier

@@ -24,2 +30,9 @@ * @see https://developer.crowdin.com/api/v2/#tag/Translations/paths/~1projects~1{projectId}~1pre-translations~1{preTranslationId}/get

* @param projectId project identifier
* @param preTranslationId pre translation identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.pre-translations.patch
*/
editPreTranslation(projectId: number, preTranslationId: string, request: PatchRequest[]): Promise<ResponseObject<Status<TranslationsModel.PreTranslationStatusAttributes>>>;
/**
* @param projectId project identifier
* @param directoryId directory identifier

@@ -172,3 +185,3 @@ * @param request request body

}
type Method = 'tm' | 'mt';
type Method = 'tm' | 'mt' | 'ai';
type AutoApproveOption = 'all' | 'exceptAutoSubstituted' | 'perfectMatchOnly' | 'none';

@@ -175,0 +188,0 @@ type CharTransformation = 'asian' | 'european' | 'arabic' | 'cyrillic';

@@ -14,2 +14,11 @@ "use strict";

* @param projectId project identifier
* @param options optional parameters for the request
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.pre-translations.getMany
*/
listPreTranslations(projectId, options) {
const url = `${this.url}/projects/${projectId}/pre-translations`;
return this.getList(url, options === null || options === void 0 ? void 0 : options.limit, options === null || options === void 0 ? void 0 : options.offset);
}
/**
* @param projectId project identifier
* @param preTranslationId pre translation identifier

@@ -33,2 +42,12 @@ * @see https://developer.crowdin.com/api/v2/#tag/Translations/paths/~1projects~1{projectId}~1pre-translations~1{preTranslationId}/get

* @param projectId project identifier
* @param preTranslationId pre translation identifier
* @param request request body
* @see https://developer.crowdin.com/api/v2/#operation/api.projects.pre-translations.patch
*/
editPreTranslation(projectId, preTranslationId, request) {
const url = `${this.url}/projects/${projectId}/pre-translations/${preTranslationId}`;
return this.patch(url, request, this.defaultConfig());
}
/**
* @param projectId project identifier
* @param directoryId directory identifier

@@ -35,0 +54,0 @@ * @param request request body

2

package.json
{
"name": "@crowdin/crowdin-api-client",
"version": "1.37.1",
"version": "1.38.0",
"description": "JavaScript library for Crowdin API",

@@ -5,0 +5,0 @@ "main": "out/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc