Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Docker Image's I18N_LOCALE environment variable does not seem to work #8075

Open
linghengqian opened this issue Sep 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@linghengqian
Copy link

linghengqian commented Sep 7, 2024

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create the following docker-compose.yml file. Then docker compose up -d.
services:
  opensearch-node1:
    image: opensearchproject/opensearch:2.16.0
    expose:
      - 9200
      - 9600
    environment:
      discovery.type: single-node
      OPENSEARCH_INITIAL_ADMIN_PASSWORD: opensearchNode1Test
    restart: always
    volumes:
      - opensearch-data1:/usr/share/opensearch/data
  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:2.16.0
    environment:
      OPENSEARCH_HOSTS: '["https://opensearch-node1:9200"]'
      I18N_LOCALE: "zh-CN"
    restart: always
    ports:
      - "5601:5601"
volumes:
  opensearch-data1:
  1. Visit localhost:5601 and log in using the admin and opensearchNode1Test user passwords.
  • image
  1. At this time, the Web UI is still in English, not the Chinese zh-CN set by I18N_LOCALE.
  • image

Expected behavior
A clear and concise description of what you expected to happen.

  • The I18N_LOCALE environment variable of the Docker Image works.

OpenSearch Version
Please list the version of OpenSearch being used.

  • 2.16.0

Dashboards Version
Please list the version of OpenSearch Dashboards being used.

  • 2.16.0

Plugins
Please list all plugins currently enabled.

  • Only built-ins.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS] Ubuntu 22.04.4 WSL
  • Browser and version [e.g. 22] Microsoft Edge 128.0.2739.63

Additional context

  • Null.

Add any other context about the problem here.

@Qithird
Copy link

Qithird commented Sep 19, 2024

遇到同样问题,检测了对多遍以为配置没生效,结果容器中配置已生效只是没有应用到语言包

@linghengqian
Copy link
Author

遇到同样问题,检测了对多遍以为配置没生效,结果容器中配置已生效只是没有应用到语言包

@dblock
Copy link
Member

dblock commented Sep 30, 2024

[Catch All Triage - 1, 2, 3, 4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants