Skip to content

Commit

Permalink
chore: Enable bilingual feature (#274)
Browse files Browse the repository at this point in the history
* chore: Enable bilingual function

* use the translated language word

* fix format
  • Loading branch information
wmoussa-gc authored Jan 16, 2025
1 parent 177d44d commit 2da58cd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ A modern, enterprise-ready business intelligence web application.
## Setup

### AWS

1. Update the configuration in `./docker/superset_config.py`.
2. Build the Docker image with `make build`.
3. Run Terraform apply with `make apply`.
Expand Down Expand Up @@ -33,10 +34,20 @@ superset init
```

### Localhost
You will need Docker, and optionally VS Code devcontainers:

You will need Docker and Docker Compose, and optionally VS Code devcontainers:

1. Run `make localhost`.
2. Username and password are `admin` at http://localhost:8088.

## Databases

Use the database connection details in `./databases` to connect to datasources.

## Development

To set up the development environment, run the following commands:

```bash
make install_dev && make fmt
```
5 changes: 5 additions & 0 deletions docker/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ class CeleryConfig(object):
"ENABLE_TEMPLATE_PROCESSING": True,
}

LANGUAGES = {
"en": {"flag": "us", "name": "English"},
"fr": {"flag": "fr", "name": "Français"},
}

# Custom roles
FAB_ROLES = {
"ReadOnly": [
Expand Down

0 comments on commit 2da58cd

Please sign in to comment.