Set up i18n

This commit is contained in:
Iván Ovejero
2021-11-09 09:59:48 +01:00
parent a46c7f827d
commit 1de9ecf4ec
19 changed files with 1891 additions and 13 deletions

View File

@@ -689,6 +689,13 @@ const config = convict({
},
},
},
defaultLocale: {
doc: 'Default locale for the UI',
format: String,
default: 'en',
env: 'N8N_DEFAULT_LOCALE',
},
});
// Overwrite default configuration with settings which got defined in

View File

@@ -394,6 +394,7 @@ export interface IN8nUISettings {
instanceId: string;
telemetry: ITelemetrySettings;
personalizationSurvey: IPersonalizationSurvey;
defaultLocale: string;
}
export interface IPersonalizationSurveyAnswers {

View File

@@ -280,6 +280,7 @@ class App {
personalizationSurvey: {
shouldShow: false,
},
defaultLocale: config.get('defaultLocale'),
};
}