-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translating on windows with electron app throwing an error #16
Comments
Hi alvapatrice, I just force build and its passing the tests. Maybe its something with your implementation. Can you give me more details in how you're working with that? |
here are the source code 'use strict'; Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _vuex = require('vuex'); var _nodeGoogleTranslateSkidz = require('node-google-translate-skidz'); var _nodeGoogleTranslateSkidz2 = _interopRequireDefault(_nodeGoogleTranslateSkidz); var _languages = require('../utils/languages'); var _languages2 = _interopRequireDefault(_languages); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { \n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t {{lang.text}} \n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<button id="switch-languages" title="Switch Languages" @click="switchLangs">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t {{lang.text}} \n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<textarea v-model="sourceText" placeholder="Source Text" maxlength="1000" @keyup.enter="translate"></textarea>\n\t\t\t\t\t\t\t\t\t {{ sourceText.length }} / 1000 \n\t\t\t\t\t\t\t\t\t<textarea v-model="targetText" placeholder="Target Text">{{targetText}}</textarea>\n\t\t\t\t\t\t\t\t\t<button id="clear-translate-btn" class="fl" @click="clearText">Clear\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t<button id="translate-btn" class="fr royal" @click="translate">Translate',data: function data() { return { sourceText: '', targetText: '', languages: _languages2.default, sourceSelectedLang: 'en', targetSelectedLang: 'tr', transLoader: false }; },
}; I think there is no usage mistake. |
while trying to find where the problem is, I have tried to to make a request on the API url used in your lib/translate.js using Postman. So can you figure out where should be the source of the problem? For me I think as long as with postman its self can't get a valid response, the API url might have a problem. |
@alvapatrice you're using old library version, please update to 1.1.1 in your package.json |
Couldn't retrieve a valid JSON response. Perhaps the API has changed, please let us know.
What's the problem with my application?
The text was updated successfully, but these errors were encountered: