Skip to content

Setting the default language via OC_DEFAULT_LANGUAGE #167

@noboevbo

Description

@noboevbo

I just setup an OC test instance in Keycloak autoprovisioning mode. I got everything to work (roles, groups etc.) thanks to your documentation. One thing I noticed is that the default language for new users seems to be English, regardless of the browser settings.

According to the information at https://github.com/opencloud-eu/opencloud/tree/main/services/settings#default-language, you can use the OC_DEFAULT_LANGUAGE environment variable with an value in the ISO 639-1 format. I have created the following entry in the .env file accordingly:

OC_DEFAULT_LANGUAGE=de

Edit:
Just found, that OC_DEFAULT_LANGUAGE is never picked up from the .env, so I would suggest to add it (commented) to the .env template and add OC_DEFAULT_LANGUAGE: "${OC_DEFAULT_LANGUAGE}" to the main docker-compose.yml. That's how I did it now and it seems to work fine.

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