Skip to content

Commit

Permalink
Fix google-translate functionality
Browse files Browse the repository at this point in the history
This bug exists already since I started using Spacemacs about 1.5 year ago.
Because it was already reported upstreaim in
[this issue](atykhonov/google-translate#52), I
implemented this fix only locally.

However it becomes time now to implement this fix globally, to fix the
google-translate functionality by default.
  • Loading branch information
dalanicolai authored and duianto committed Jul 31, 2021
1 parent 65121dd commit 236eb94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layers/+spacemacs/spacemacs-language/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
(use-package google-translate
:commands (spacemacs/set-google-translate-languages)
:init
;; fix search fail ',ttk'
;; (see https://github.com/atykhonov/google-translate/issues/52#issuecomment-727920888)
(with-eval-after-load 'google-translate-tk
(defun google-translate--search-tkk () "Search TKK." (list 430675 2721866130)))

(progn
(defun spacemacs/set-google-translate-languages (&optional override-p)
"Set source language for google translate.
Expand Down

0 comments on commit 236eb94

Please sign in to comment.