Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
60 lines
1.4 KiB
CUE
60 lines
1.4 KiB
CUE
package options
|
|
|
|
import (
|
|
"github.com/cortezaproject/corteza/server/codegen/schema"
|
|
)
|
|
|
|
locale: schema.#optionsGroup & {
|
|
handle: "locale"
|
|
options: {
|
|
languages: {
|
|
defaultValue: "en"
|
|
description: """
|
|
List of comma delimited languages (language tags) to enable.
|
|
In case when an enabled language can not be loaded, error is logged.
|
|
|
|
When loading language configurations (config.xml) from the configured path(s).
|
|
|
|
"""
|
|
}
|
|
|
|
path: {
|
|
description: """
|
|
One or more paths to locale config and translation files, separated by colon
|
|
|
|
When with LOCALE_DEVELOPMENT_MODE=true, default value for path is ../../locale
|
|
"""
|
|
}
|
|
|
|
query_string_param: {
|
|
defaultValue: "lng"
|
|
description: """
|
|
Name of the query string parameter used to pass the language tag (it overrides Accept-Language header).
|
|
Set it to empty string to disable detection from the query string.
|
|
This parameter is ignored if only one language is enabled
|
|
|
|
"""
|
|
}
|
|
|
|
resource_translations_enabled: {
|
|
type: "bool"
|
|
description: """
|
|
When enabled, an editor for resource translations is enabled in UI
|
|
"""
|
|
}
|
|
|
|
log: {
|
|
type: "bool"
|
|
description: "Log locale related events and actions"
|
|
}
|
|
|
|
development_mode: {
|
|
type: "bool"
|
|
description: """
|
|
When enabled, Corteza reloads language files on every request
|
|
Enable this for debugging or developing.
|
|
"""
|
|
}
|
|
}
|
|
}
|