Skip to content

i18n.locale not working in docker-compose.yml #53814

Description

@JackLiar

Kibana version: oss-7.5.1

Elasticsearch version: oss-7.5.1

Server OS version: CentOS 7(Docker)

Browser version: Safari 13.0.4 (15608.4.9.1.3)

Browser OS version: macOS 10.15.2

Original install method (e.g. download page, yum, from source, etc.): Docker

Describe the bug: I set the i18n.locale environment variable as "zh-CN" in a docker-compose.yml file, but I still got an English interface

Steps to reproduce:
example docker-compose.yml:

version: '3'

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.5.1
    ports:
      - "9200:9200"
      - "9300:9300"
    container_name: elasticsearch
    hostname: elasticsearch
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health?wait_for_status=yellow"]
      interval: 30s
      timeout: 10s
      retries: 1
    environment:
      - discovery.type=single-node
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  kibana:
    image: docker.elastic.co/kibana/kibana-oss:7.5.1
    ports:
      - "5601:5601"
    container_name: kibana
    hostname: kibana
    depends_on:
      - elasticsearch
    environment:
      I18N_LOCALE: zh-CN

Expected behavior: if I18N_LOCALE is not set to "en", we should get a non English interface

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

{"type":"response","@timestamp":"2019-12-27T05:33:42Z","tags":[],"pid":6,"method":"get","statusCode":304,"req":{"url":"/built_assets/dlls/icon.app_timelion-js.bundle.dll.js","method":"get","headers":{"host":"localhost:5601","connection":"keep-alive","if-none-match":"\"64b54e60c71d2196be84ee389fecee2235582ebd-/built_assets/dlls/-gzip\"","accept":"*/*","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15","accept-language":"zh-cn","referer":"http://localhost:5601/app/kibana","accept-encoding":"gzip, deflate"},"remoteAddress":"172.22.0.1","userAgent":"172.22.0.1","referer":"http://localhost:5601/app/kibana"},"res":{"statusCode":304,"responseTime":13,"contentLength":9},"message":"GET /built_assets/dlls/icon.app_timelion-js.bundle.dll.js 304 13ms - 9.0B"}

Any additional context:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions