N8N_DEFAULT_LOCALE variable does not work for me

Hello colleagues,

Maybe I did not understand something quite simple, please forgive me in advance for that.

I have installed n8n on Windows and also in Docker containers on Ubuntu 20.04/x86_64 and Ubuntu 20.04/aarch64.

I got to a successful SMTP setup, new member invitations work fine. The n8n interface does not show anything “suspicious”.

But there is one problem that I don’t understand what to do and as a result I can’t move forward.

In all of these installations I had the variable N8N_DEFAULT_LOCALE=de defined. In none of the installations I listed I was able to see the texts in German, neither in the GUI on the Windows machine, nor in the web interface of the self-hosted instances. I love English, but I am tasked with providing a German web interface.

I have the impression that I am missing something very obvious. Please help me by pointing me to the right place in the documentation. If it’s there, of course. If it’s not there, I’ll be very happy if I helped to improve it a bit.

Please find my docker-compose.yml and .env files below.

docker-compose.yml file:

version: '3.1'

services:
  postgres:
    image: postgres:11
    restart: always
    environment:
      - POSTGRES_USER=n8n
      - POSTGRES_PASSWORD=XXXXXXXXXXXX
      - POSTGRES_DB=n8n
      - POSTGRES_NON_ROOT_USER=n8n
      - POSTGRES_NON_ROOT_PASSWORD=XXXXXXXXXXXX
    volumes:
      - /home/ubuntu/docker/14000-n8n.example.com/init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
    networks:
      - net

  n8n:
    image: n8nio/n8n
    restart: always
    environment:
      - GENERIC_TIMEZONE=Europe/Berlin
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=n8n
      - DB_POSTGRESDB_PASSWORD=XXXXXXXXXXXX

      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=me
      - N8N_BASIC_AUTH_PASSWORD=XXXXXXXXXXXX
      - N8N_DEFAULT_LOCALE=de

      - N8N_EMAIL_MODE=smtp
      - N8N_SMTP_HOST=smtp.gmail.com
      - N8N_SMTP_PORT=465
      - [email protected]
      - N8N_SMTP_PASS=YYYYYYYYYYYYYYY
      - [email protected]
      - N8N_SMTP_SSL=true

      - N8N_HOST=n8n.example.com
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - NODE_ENV=production
      - WEBHOOK_URL=https://n8n.example.com/
    ports:
      - 14000:5678
    links:
      - postgres
    volumes:
      - /home/ubuntu/docker/14000-n8n.example.com/.n8n:/home/node/.n8n
      - /home/ubuntu/docker/14000-n8n.example.com/share:/share
    # Wait 5 seconds to start n8n to make sure that PostgreSQL is ready
    # when n8n tries to connect to it
    command: /bin/sh -c "sleep 5; n8n start"
    networks:
      - net
networks:
  net:

.env file:

# Folder where data should be saved
DATA_FOLDER=/home/ubuntu/docker/14000-n8n.example.com/.n8n-data

# The top level domain to serve from
DOMAIN_NAME=example.com

# The subdomain to serve from
SUBDOMAIN=n8n

# DOMAIN_NAME and SUBDOMAIN combined decide where n8n will be reachable from
# above example would result in: https://n8n.example.com

# The email address to use for the SSL certificate creation
[email protected]

Thank you in advance for ANY idea!

Hey @marinka ,
welcome to the community. :tada:

n8n supports internalization but so far only the en.json base locale is present. You can also translate dynamic texts for nodes and credentials. Right now it looks like only english texts are available.

@MutedJam Do you know of any efforts for german translations going on?

1 Like

Nope, I don’t think I have seen that on the near term roadmap, but this might be one for @sirdavidoff from the product team to confirm.

I know @mcnaveen was looking into a Tamil translation.