summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-08-17 21:43:15 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-22 14:47:41 +0200
commit70d7daa4811694a0b0a1b3001aedf9ccb736639d (patch)
tree9051673958d0e07a6231b22e1c46daf288e380ef
parent226221223df151a3a3a5f8dbab540204c48571b7 (diff)
downloadaerc-70d7daa4811694a0b0a1b3001aedf9ccb736639d.tar.gz
aerc-70d7daa4811694a0b0a1b3001aedf9ccb736639d.zip
integration: added translation of foreign mail using Translate Shell
Signed-off-by: Moritz Poldrack <git@moritz.sh>
-rw-r--r--integrations/index.md1
-rw-r--r--integrations/translator.md17
2 files changed, 18 insertions, 0 deletions
diff --git a/integrations/index.md b/integrations/index.md
index 0e200c2c..d7badcd8 100644
--- a/integrations/index.md
+++ b/integrations/index.md
@@ -7,3 +7,4 @@ title: "aerc-wiki: Integrations"
- [password-manager](integrations/password-manager.md)
- [pgp](integrations/pgp.md)
- [sourcehut](integrations/sourcehut.md)
+- [translator](integrations/translator.md)
diff --git a/integrations/translator.md b/integrations/translator.md
new file mode 100644
index 00000000..23845257
--- /dev/null
+++ b/integrations/translator.md
@@ -0,0 +1,17 @@
+---
+title: "aerc-wiki: Integrations/translator"
+---
+
+# Translate Shell
+
+Translation using [Translate Shell](https://www.soimort.org/translate-shell/)
+can easily be integrated by adding the following to your binds.conf:
+
+```ini
+[view]
+tr = :pipe trans -show-original n -b -no-autocorrect<Enter>
+```
+
+This will automatically attempt to detect the language of the received message
+and translate it.
+