Data Mapping and Merge Logic for Localization - n8n Workflow

Use this core logic n8n workflow template to efficiently merge and combine two separate datasets based on a common matching key using the n8n Merge node.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Automation Specialists who need to correlate data from disparate sources.
Users aiming to master the functionality of the core n8n node types, especially the Merge node.
Developers building multi-language or localization features within an n8n workflow.
Anyone seeking practical n8n templates for efficient data processing.

Overview

This fundamental n8n workflow provides a robust example of effective data handling and flow control within n8n. It addresses the common requirement of pairing items from two distinct datasets using a common identifier. In this specific n8n template, we simulate a localization requirement by ensuring every user record is correctly matched with the appropriate localized greeting.

By leveraging the specialized Merge n8n node in Combine mode, we create a highly efficient and scalable solution that avoids manual data lookups, streamlining complex automation tasks. Understanding this core logic is crucial for maximizing the potential of any production-ready n8n workflow.

How it Works

The process is initiated by the Manual n8n trigger, designed for quick testing and debugging of the logic. The flow immediately branches into two parallel processing paths:


  1. User Data Path: The first Code n8n node generates sample user items, each containing a name and a language code (e.g., 'en' or 'de').

  2. Greeting Data Path: The second Code n8n node generates the corresponding localized greetings, paired with their respective language codes.

Both data streams then converge into the Merge n8n node. This powerful n8n node is configured to operate in Combine mode, using the shared language field as the matching key. The result of this operation is a unified dataset where each user item is perfectly merged with the correct language-specific greeting, demonstrating a clean implementation of cross-dataset joining within an n8n workflow.

Installation Guide

To use this n8n workflow, follow these steps:


  1. Import: Copy the entire JSON code provided and paste it into your n8n instance using the 'Import Workflow' function.

  2. Review Nodes: No external credentials are required as this n8n workflow uses internal Code and Merge n8n nodes.

  3. Testing: Click the 'Test workflow' button on the Manual n8n trigger node to execute the flow and observe the correlated output in the final Merge n8n node.

Node Details

When clicking ‘Test workflow’ (Manual Trigger n8n node): This acts as the starting n8n trigger, allowing you to manually execute and verify the automation logic.
Sample data (name + language) (Code n8n node): Generates the primary list of items (users) that need localized data appended. This showcases how to input structured data into an n8n workflow.
Sample data (greeting + language) (Code n8n node): Generates the secondary list (the lookup table) containing the greetings keyed by language. This data is essential for the join operation.
Merge (name + language + greeting) (Merge n8n node): The core n8n node for data manipulation.
Function: Combines items from Input 1 (users) with items from Input 2 (greetings).
Key Configuration: The mode is set to Combine, and the matching field is explicitly set to language. This ensures a precise, key-based join operation, a critical feature for advanced n8n templates.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by
n8n Team
n8n Team

Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.

Featured*