@crowdin/crowdin-apps-functions
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38218