mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Add GRIST_DEFAULT_LOCALE env var (#257)
This commit is contained in:
parent
028146f88a
commit
50a57c673f
@ -207,6 +207,7 @@ GRIST_BACKUP_DELAY_SECS | wait this long after a doc change before making a back
|
|||||||
GRIST_DATA_DIR | directory in which to store document caches.
|
GRIST_DATA_DIR | directory in which to store document caches.
|
||||||
GRIST_DEFAULT_EMAIL | if set, login as this user if no other credentials presented
|
GRIST_DEFAULT_EMAIL | if set, login as this user if no other credentials presented
|
||||||
GRIST_DEFAULT_PRODUCT | if set, this controls enabled features and limits of new sites. See names of PRODUCTS in Product.ts.
|
GRIST_DEFAULT_PRODUCT | if set, this controls enabled features and limits of new sites. See names of PRODUCTS in Product.ts.
|
||||||
|
GRIST_DEFAULT_LOCALE | Locale to use as fallback when Grist cannot honour the browser locale.
|
||||||
GRIST_DOMAIN | in hosted Grist, Grist is served from subdomains of this domain. Defaults to "getgrist.com".
|
GRIST_DOMAIN | in hosted Grist, Grist is served from subdomains of this domain. Defaults to "getgrist.com".
|
||||||
GRIST_EXPERIMENTAL_PLUGINS | enables experimental plugins
|
GRIST_EXPERIMENTAL_PLUGINS | enables experimental plugins
|
||||||
GRIST_HIDE_UI_ELEMENTS | comma-separated list of parts of the UI to hide. Allowed names of parts: `helpCenter,billing,templates,multiSite,multiAccounts`
|
GRIST_HIDE_UI_ELEMENTS | comma-separated list of parts of the UI to hide. Allowed names of parts: `helpCenter,billing,templates,multiSite,multiAccounts`
|
||||||
|
@ -128,7 +128,7 @@ bluebird.promisifyAll(tmp);
|
|||||||
const MAX_RECENT_ACTIONS = 100;
|
const MAX_RECENT_ACTIONS = 100;
|
||||||
|
|
||||||
const DEFAULT_TIMEZONE = (process.versions as any).electron ? moment.tz.guess() : "UTC";
|
const DEFAULT_TIMEZONE = (process.versions as any).electron ? moment.tz.guess() : "UTC";
|
||||||
const DEFAULT_LOCALE = "en-US";
|
const DEFAULT_LOCALE = process.env.GRIST_DEFAULT_LOCALE || "en-US";
|
||||||
|
|
||||||
// Number of seconds an ActiveDoc is retained without any clients.
|
// Number of seconds an ActiveDoc is retained without any clients.
|
||||||
// In dev environment, it is convenient to keep this low for quick tests.
|
// In dev environment, it is convenient to keep this low for quick tests.
|
||||||
|
Loading…
Reference in New Issue
Block a user