mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
refactor(editor): Extract @n8n/i18n package for internationalization (no-changelog) (#15466)
This commit is contained in:
@@ -13,7 +13,7 @@ import { isEmpty } from '@/utils/typesUtils';
|
||||
import { FORM_NODE_TYPE, FORM_TRIGGER_NODE_TYPE, GITHUB_NODE_TYPE } from '../constants';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { i18n } from '@/plugins/i18n';
|
||||
import { i18n } from '@n8n/i18n';
|
||||
import { h } from 'vue';
|
||||
import NodeExecutionErrorMessage from '@/components/NodeExecutionErrorMessage.vue';
|
||||
|
||||
@@ -285,7 +285,10 @@ export function executionRetryMessage(executionStatus: ExecutionStatus):
|
||||
export function getExecutionErrorMessage({
|
||||
error,
|
||||
lastNodeExecuted,
|
||||
}: { error?: ExecutionError; lastNodeExecuted?: string }): string {
|
||||
}: {
|
||||
error?: ExecutionError;
|
||||
lastNodeExecuted?: string;
|
||||
}): string {
|
||||
let errorMessage: string;
|
||||
|
||||
if (lastNodeExecuted && error) {
|
||||
@@ -320,7 +323,10 @@ export function getExecutionErrorMessage({
|
||||
export function getExecutionErrorToastConfiguration({
|
||||
error,
|
||||
lastNodeExecuted,
|
||||
}: { error: ExecutionError; lastNodeExecuted?: string }) {
|
||||
}: {
|
||||
error: ExecutionError;
|
||||
lastNodeExecuted?: string;
|
||||
}) {
|
||||
const message = getExecutionErrorMessage({ error, lastNodeExecuted });
|
||||
|
||||
if (error.name === 'SubworkflowOperationError') {
|
||||
|
||||
Reference in New Issue
Block a user