Add support for internationalization

This commit is contained in:
Jan Oberhauser
2019-11-23 11:43:00 +01:00
parent 2cdfe5b100
commit 60241d3163
2 changed files with 8 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ import {
} from "n8n-core";
import { Command, flags } from '@oclif/command';
const open = require('open');
import { promisify } from "util";
import { promisify } from 'util';
import { dirname } from 'path';
import * as config from '../config';
import {
@@ -21,6 +22,10 @@ import {
const tunnel = promisify(localtunnel);
// Add support for internationalization
const fullIcuPath = require.resolve('full-icu');
process.env.NODE_ICU_DATA = dirname(fullIcuPath);
let activeWorkflowRunner: ActiveWorkflowRunner.ActiveWorkflowRunner | undefined;
let processExistCode = 0;