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

@crowdin/crowdin-apps-functions

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crowdin/crowdin-apps-functions - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

out/crowdin.d.ts

@@ -72,3 +72,3 @@ import Crowdin, { SourceFilesModel, TranslationsModel } from '@crowdin/crowdin-api-client';

*/
export declare function handleTranslartions(crowdinClient: Crowdin, projectId: number, directory: string, request: TranslationsRequest, handleFn: (translations: any, language: string, file: SourceFilesModel.File) => Promise<void>, parentDirectory?: SourceFilesModel.Directory): Promise<void>;
export declare function handleTranslations(crowdinClient: Crowdin, projectId: number, directory: string, request: TranslationsRequest, handleFn: (translations: any, language: string, file: SourceFilesModel.File) => Promise<void>, parentDirectory?: SourceFilesModel.Directory): Promise<void>;
export interface FileEntity {

@@ -75,0 +75,0 @@ name: string;

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.handleTranslartions = exports.updateSourceFiles = exports.uploadTranslations = exports.getOrCreateFolder = exports.getFolder = exports.updateOrCreateFile = void 0;
exports.handleTranslations = exports.updateSourceFiles = exports.uploadTranslations = exports.getOrCreateFolder = exports.getFolder = exports.updateOrCreateFile = void 0;
const axios_1 = require("axios");

@@ -137,3 +137,3 @@ /**

*/
function handleTranslartions(crowdinClient, projectId, directory, request, handleFn, parentDirectory) {
function handleTranslations(crowdinClient, projectId, directory, request, handleFn, parentDirectory) {
return __awaiter(this, void 0, void 0, function* () {

@@ -158,2 +158,2 @@ const directories = yield crowdinClient.sourceFilesApi.withFetchAll().listProjectDirectories(projectId);

}
exports.handleTranslartions = handleTranslartions;
exports.handleTranslations = handleTranslations;
{
"name": "@crowdin/crowdin-apps-functions",
"version": "0.0.5",
"version": "0.0.6",
"description": "Utility library to easily and quickly develop Crowdin App",

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

@@ -94,3 +94,3 @@ [<p align='center'><img src='https://support.crowdin.com/assets/logos/crowdin-dark-symbol.png' data-canonical-src='https://support.crowdin.com/assets/logos/crowdin-dark-symbol.png' width='200' height='200' align='center'/></p>](https://crowdin.com)

| `updateSourceFiles` | updates source files under specific directory |
| `handleTranslartions` | executes side effect function for each translated file |
| `handleTranslations` | executes side effect function for each translated file |

@@ -97,0 +97,0 @@ Also please have a look to working example of the [Crowdin App](https://github.com/crowdin/create-crowdin-app). It can be used as a basis for your app.

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