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"; } from "n8n-core";
import { Command, flags } from '@oclif/command'; import { Command, flags } from '@oclif/command';
const open = require('open'); const open = require('open');
import { promisify } from "util"; import { promisify } from 'util';
import { dirname } from 'path';
import * as config from '../config'; import * as config from '../config';
import { import {
@@ -21,6 +22,10 @@ import {
const tunnel = promisify(localtunnel); 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 activeWorkflowRunner: ActiveWorkflowRunner.ActiveWorkflowRunner | undefined;
let processExistCode = 0; let processExistCode = 0;

View File

@@ -71,9 +71,9 @@
"typescript": "~3.5.2" "typescript": "~3.5.2"
}, },
"dependencies": { "dependencies": {
"@types/jsonwebtoken": "^8.3.4",
"@oclif/command": "^1.5.18", "@oclif/command": "^1.5.18",
"@oclif/errors": "^1.2.2", "@oclif/errors": "^1.2.2",
"@types/jsonwebtoken": "^8.3.4",
"basic-auth": "^2.0.1", "basic-auth": "^2.0.1",
"body-parser": "^1.18.3", "body-parser": "^1.18.3",
"compression": "^1.7.4", "compression": "^1.7.4",
@@ -82,6 +82,7 @@
"dotenv": "^8.0.0", "dotenv": "^8.0.0",
"express": "^4.16.4", "express": "^4.16.4",
"flatted": "^2.0.0", "flatted": "^2.0.0",
"full-icu": "^1.3.0",
"glob-promise": "^3.4.0", "glob-promise": "^3.4.0",
"google-timezones-json": "^1.0.2", "google-timezones-json": "^1.0.2",
"inquirer": "^6.5.1", "inquirer": "^6.5.1",