Skip to content

Commit

Permalink
fix: declare i18n function before its usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored and sgtcoolguy committed Feb 9, 2021
1 parent 4191629 commit 83a1449
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions iphone/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ exports.init = function (logger, config, cli) {
return finished();
}

const i18n = require('node-appc').i18n(__dirname);
const __ = i18n.__;
const __n = i18n.__n;

if (cli.argv['build-only']) {
logger.info(__('Performed build only, skipping running of the application'));
return finished();
}

const ioslib = require('ioslib');
const i18n = require('node-appc').i18n(__dirname);
const __ = i18n.__;
const __n = i18n.__n;
const path = require('path');
const fs = require('fs-extra');
// eslint-disable-next-line security/detect-child-process
Expand Down

0 comments on commit 83a1449

Please sign in to comment.