Comparing version 1.5.0 to 1.5.1
@@ -73,3 +73,3 @@ "use strict"; | ||
this.extractFromOneFile = function (sourceCode, sourceFile) { | ||
var filepath = path.resolve(__dirname, "../../src/python/pythonTrCollector.py " + sourceFile); | ||
var filepath = path.resolve(__dirname, "./python-scripts/pythonTrCollector.py " + sourceFile); | ||
var output = child_process_1.execSync("python3 " + filepath); | ||
@@ -76,0 +76,0 @@ return JSON.parse(output.toString()); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var PythonLangClient = function (publicKey) { return "from langapi import LangClient\n\nclient = LangClient(" + publicKey + ", \"./langapi/translations.json\")\n\n\ndef tr(phrase, forceLanguage):\n return client.tr(phrase, forceLanguage)\n\n\ndef param(phrase):\n return client.param(phrase)\n"; }; | ||
var PythonLangClient = function (publicKey) { return "from langapi import LangClient\n\nclient = LangClient(\"" + publicKey + "\", \"./langapi/translations.json\")\n\n\ndef tr(phrase, forceLanguage):\n return client.tr(phrase, forceLanguage)\n\n\ndef param(phrase):\n return client.param(phrase)\n"; }; | ||
exports.default = PythonLangClient; | ||
//# sourceMappingURL=python.js.map |
{ | ||
"name": "langapi", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "TaaS", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"dev": "concurrently --kill-others \"tsc -w\" \"nodemon dist/index.js\"", | ||
"build": "tsc", | ||
"build": "tsc && cp -r ./src/python/python-scripts ./dist/python/python-scripts", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
@@ -62,3 +62,3 @@ "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"", | ||
"node-fetch": "^2.3.0", | ||
"ora": "^3.0.0", | ||
"ora": "3.1.0", | ||
"shelljs": "^0.8.3", | ||
@@ -77,3 +77,2 @@ "ts": "^0.2.2", | ||
"@types/optimist": "^0.0.29", | ||
"@types/ora": "^3.0.0", | ||
"@types/shelljs": "^0.8.3", | ||
@@ -80,0 +79,0 @@ "@types/yargs": "^12.0.8", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
287027
16
113
4835
+ Addedcli-spinners@1.3.1(transitive)
+ Addedora@3.1.0(transitive)
- Removedcli-spinners@2.9.2(transitive)
- Removedora@3.4.0(transitive)
Updatedora@3.1.0