Enable translations dynamically depending on whether a TRANSLATION_PROVIDER is set

This commit is contained in:
Alex Gleason 2024-10-09 20:17:04 -05:00
parent 878535c428
commit d4767f56c6
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -129,7 +129,7 @@ const instanceV2Controller: AppController = async (c) => {
max_expiration: 2629746, max_expiration: 2629746,
}, },
translation: { translation: {
enabled: true, enabled: Boolean(Conf.translationProvider),
}, },
}, },
nostr: { nostr: {