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

Settings default lang #407

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/ocis/docs/values-desc-table.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
`"oCIS"`
| Realm that the users are in.
| features.language.default
a| [subs=-attributes]
+string+
a| [subs=-attributes]
`"en"`
| The default language. If not defined, English will be used as default. See the documentation for more details.
| features.policies.enabled
a| [subs=-attributes]
+bool+
Expand Down
6 changes: 5 additions & 1 deletion charts/ocis/docs/values.adoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ features:
# -- Create demo users on the first startup.
# Not recommended for production installations.
demoUsers: false
# Language related settings
language:
# -- The default language. If not defined, English will be used as default. See the documentation for more details.
default: "en"
# Email related settings
emailNotifications:
# -- Enables email notifications.
Expand Down Expand Up @@ -1796,7 +1800,7 @@ services:
# Specifies the target url for the privacy link in the account menu.
privacyURL:
# Specifies the login url
loginURL:
loginURL:

# -- Persistence settings.
# @default -- see detailed persistence configuration options below
Expand Down
3 changes: 3 additions & 0 deletions charts/ocis/templates/settings/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
- name: SETTINGS_DEBUG_PPROF
value: {{ .Values.debug.profiling | quote }}

- name: SETTINGS_DEFAULT_LANGUAGE
value: {{ default "en" .Values.features.language.default | quote }}

# cache
- name: SETTINGS_CACHE_STORE
value: {{ default "memory" .Values.cache.type | quote }}
Expand Down
6 changes: 5 additions & 1 deletion charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ features:
# -- Create demo users on the first startup.
# Not recommended for production installations.
demoUsers: false
# Language related settings
language:
# -- The default language. If not defined, English will be used as default. See the documentation for more details.
default: "en"
# Email related settings
emailNotifications:
# -- Enables email notifications.
Expand Down Expand Up @@ -1795,7 +1799,7 @@ services:
# Specifies the target url for the privacy link in the account menu.
privacyURL:
# Specifies the login url
loginURL:
loginURL:

# -- Persistence settings.
# @default -- see detailed persistence configuration options below
Expand Down