Skip to content

Commit

Permalink
Hide another api key (google script translate)
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 27, 2024
1 parent 4c4d218 commit a575e6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String translateRuToEng(String text) {

private String translateFromTo(String langFrom, String langTo, String text) {
try {
String urlStr = "https://script.google.com/macros/s/AKfycbzO8nojwkOWKi3DjljSEf8byUYIwzNHIIhSRcPn4lGkE_1-m_LuqwU1s5SLJ0TRiarj/exec" +
String urlStr = "https://script.google.com/macros/s/{GOOGLE_SCRIPT_TRANSLATE_KEY}/exec" +
"?q=" + URLEncoder.encode(text, "UTF-8") +
"&target=" + langTo +
"&source=" + langFrom;
Expand Down

0 comments on commit a575e6c

Please sign in to comment.