mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
refactor: rename TREND_LANGUAGES to DITTO_LANGUAGES
This commit is contained in:
parent
c0d9a90bfa
commit
b549cdef53
1 changed files with 3 additions and 3 deletions
|
|
@ -248,9 +248,9 @@ class Conf {
|
|||
static get zapSplitsEnabled(): boolean {
|
||||
return optionalBooleanSchema.parse(Deno.env.get('ZAP_SPLITS_ENABLED')) ?? false;
|
||||
}
|
||||
/** Filter trends by languages. */
|
||||
static get trendLanguages(): LanguageCode[] | undefined {
|
||||
return Deno.env.get('TREND_LANGUAGES')?.split(',')?.filter(ISO6391.validate) as LanguageCode[];
|
||||
/** Languages this server wishes to highlight. Used when querying trends.*/
|
||||
static get preferredLanguages(): LanguageCode[] | undefined {
|
||||
return Deno.env.get('DITTO_LANGUAGES')?.split(',')?.filter(ISO6391.validate) as LanguageCode[];
|
||||
}
|
||||
/** Cache settings. */
|
||||
static caches = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue