about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/initial_state.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-24 18:30:58 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-11-30 13:53:38 +0100
commit47bd934061c8f6686bb478d5ea1eaa131bd1d1f9 (patch)
tree7176c6bddf74a12ed6e23860687fd729f1cd9fd5 /app/javascript/flavours/glitch/initial_state.js
parente8d0a1b320713eda76f303b6e840d004f1890d27 (diff)
[Glitch] Change “Translate” button to only show up when a translation backend is configured
Port 8046cf34d68209b39845e07a9d2db40926cc5512 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/initial_state.js')
-rw-r--r--app/javascript/flavours/glitch/initial_state.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/initial_state.js b/app/javascript/flavours/glitch/initial_state.js
index 5be177ced..bbf25c8a8 100644
--- a/app/javascript/flavours/glitch/initial_state.js
+++ b/app/javascript/flavours/glitch/initial_state.js
@@ -79,6 +79,7 @@
  * @property {boolean} use_blurhash
  * @property {boolean=} use_pending_items
  * @property {string} version
+ * @property {boolean} translation_enabled
  * @property {object} local_settings
  */
 
@@ -137,6 +138,7 @@ export const unfollowModal = getMeta('unfollow_modal');
 export const useBlurhash = getMeta('use_blurhash');
 export const usePendingItems = getMeta('use_pending_items');
 export const version = getMeta('version');
+export const translationEnabled = getMeta('translation_enabled');
 export const languages = initialState?.languages;
 
 // Glitch-soc-specific settings