package.json (20932B)
1 { 2 "$schema": "https://www.raycast.com/schemas/extension.json", 3 "name": "translate", 4 "title": "Google Translate", 5 "description": "Simple translation using Google Translate", 6 "icon": "google-translate.png", 7 "author": "gebeto", 8 "categories": [ 9 "Web", 10 "Productivity" 11 ], 12 "contributors": [ 13 "FezVrasta", 14 "ickas", 15 "metakirby5", 16 "AlanHuang", 17 "nirtamir2", 18 "pernielsentikaer", 19 "rasitayaz", 20 "popalay", 21 "litomore", 22 "ChanningKuo" 23 ], 24 "license": "MIT", 25 "commands": [ 26 { 27 "name": "translate", 28 "title": "Translate", 29 "subtitle": "Google Translate", 30 "description": "Simple translation via Google Translate", 31 "mode": "view" 32 }, 33 { 34 "name": "translate-form", 35 "title": "Translate Form", 36 "subtitle": "Google Translate", 37 "description": "Simple translation via Google Translate", 38 "mode": "view" 39 }, 40 { 41 "name": "quick-translate", 42 "title": "Quick Translate", 43 "subtitle": "Google Translate", 44 "description": "Quickly translate to multiple languages", 45 "mode": "view" 46 } 47 ], 48 "preferences": [ 49 { 50 "name": "lang1", 51 "title": "Primary Language", 52 "description": "Preferred language to translate from", 53 "required": true, 54 "type": "dropdown", 55 "default": "auto", 56 "data": [ 57 { 58 "title": "đ Auto-detect", 59 "value": "auto" 60 }, 61 { 62 "title": "đżđŚ Afrikaans", 63 "value": "af" 64 }, 65 { 66 "title": "đŚđą Albanian", 67 "value": "sq" 68 }, 69 { 70 "title": "Amharic", 71 "value": "am" 72 }, 73 { 74 "title": "Arabic", 75 "value": "ar" 76 }, 77 { 78 "title": "đŚđ˛ Armenian", 79 "value": "hy" 80 }, 81 { 82 "title": "đŚđż Azerbaijani", 83 "value": "az" 84 }, 85 { 86 "title": "Basque", 87 "value": "eu" 88 }, 89 { 90 "title": "đ§đž Belarusian", 91 "value": "be" 92 }, 93 { 94 "title": "Bengali", 95 "value": "bn" 96 }, 97 { 98 "title": "đ§đŚ Bosnian", 99 "value": "bs" 100 }, 101 { 102 "title": "đ§đŹ Bulgarian", 103 "value": "bg" 104 }, 105 { 106 "title": "Catalan", 107 "value": "ca" 108 }, 109 { 110 "title": "Cebuano", 111 "value": "ceb" 112 }, 113 { 114 "title": "Chinese (Simplified)", 115 "value": "zh-CN" 116 }, 117 { 118 "title": "Chinese (Traditional)", 119 "value": "zh-TW" 120 }, 121 { 122 "title": "Corsican", 123 "value": "co" 124 }, 125 { 126 "title": "đđˇ Croatian", 127 "value": "hr" 128 }, 129 { 130 "title": "đ¨đż Czech", 131 "value": "cs" 132 }, 133 { 134 "title": "đŠđ° Danish", 135 "value": "da" 136 }, 137 { 138 "title": "đłđą Dutch", 139 "value": "nl" 140 }, 141 { 142 "title": "đŹđ§ English", 143 "value": "en" 144 }, 145 { 146 "title": "Esperanto", 147 "value": "eo" 148 }, 149 { 150 "title": "đŞđŞ Estonian", 151 "value": "et" 152 }, 153 { 154 "title": "đŤđŽ Finnish", 155 "value": "fi" 156 }, 157 { 158 "title": "đŤđˇ French", 159 "value": "fr" 160 }, 161 { 162 "title": "Frisian", 163 "value": "fy" 164 }, 165 { 166 "title": "Galician", 167 "value": "gl" 168 }, 169 { 170 "title": "đŹđŞ Georgian", 171 "value": "ka" 172 }, 173 { 174 "title": "đŠđŞ German", 175 "value": "de" 176 }, 177 { 178 "title": "đŹđˇ Greek", 179 "value": "el" 180 }, 181 { 182 "title": "Gujarati", 183 "value": "gu" 184 }, 185 { 186 "title": "đđš Haitian Creole", 187 "value": "ht" 188 }, 189 { 190 "title": "Hausa", 191 "value": "ha" 192 }, 193 { 194 "title": "đş Hawaiian", 195 "value": "haw" 196 }, 197 { 198 "title": "đŽđą Hebrew", 199 "value": "iw" 200 }, 201 { 202 "title": "đŽđł Hindi", 203 "value": "hi" 204 }, 205 { 206 "title": "Hmong", 207 "value": "hmn" 208 }, 209 { 210 "title": "đđş Hungarian", 211 "value": "hu" 212 }, 213 { 214 "title": "đŽđ¸ Icelandic", 215 "value": "is" 216 }, 217 { 218 "title": "Igbo", 219 "value": "ig" 220 }, 221 { 222 "title": "đŽđŠ Indonesian", 223 "value": "id" 224 }, 225 { 226 "title": "đŽđŞ Irish", 227 "value": "ga" 228 }, 229 { 230 "title": "đŽđš Italian", 231 "value": "it" 232 }, 233 { 234 "title": "đŻđľ Japanese", 235 "value": "ja" 236 }, 237 { 238 "title": "Javanese", 239 "value": "jv" 240 }, 241 { 242 "title": "Kannada", 243 "value": "kn" 244 }, 245 { 246 "title": "đ°đż Kazakh", 247 "value": "kk" 248 }, 249 { 250 "title": "Khmer", 251 "value": "km" 252 }, 253 { 254 "title": "Kinyarwanda", 255 "value": "rw" 256 }, 257 { 258 "title": "đ°đˇ Korean", 259 "value": "ko" 260 }, 261 { 262 "title": "Kurdish", 263 "value": "ku" 264 }, 265 { 266 "title": "Kyrgyz", 267 "value": "ky" 268 }, 269 { 270 "title": "Lao", 271 "value": "lo" 272 }, 273 { 274 "title": "đąđť Latvian", 275 "value": "lv" 276 }, 277 { 278 "title": "đąđš Lithuanian", 279 "value": "lt" 280 }, 281 { 282 "title": "đąđş Luxembourgish", 283 "value": "lb" 284 }, 285 { 286 "title": "đ˛đ° Macedonian", 287 "value": "mk" 288 }, 289 { 290 "title": "Malagasy", 291 "value": "mg" 292 }, 293 { 294 "title": "đ˛đž Malay", 295 "value": "ms" 296 }, 297 { 298 "title": "Malayalam", 299 "value": "ml" 300 }, 301 { 302 "title": "đ˛đš Maltese", 303 "value": "mt" 304 }, 305 { 306 "title": "đłđż Maori", 307 "value": "mi" 308 }, 309 { 310 "title": "Marathi", 311 "value": "mr" 312 }, 313 { 314 "title": "đ˛đł Mongolian", 315 "value": "mn" 316 }, 317 { 318 "title": "đ˛đ˛ Myanmar (Burmese)", 319 "value": "my" 320 }, 321 { 322 "title": "đłđľ Nepali", 323 "value": "ne" 324 }, 325 { 326 "title": "đłđ´ Norwegian", 327 "value": "no" 328 }, 329 { 330 "title": "Nyanja (Chichewa)", 331 "value": "ny" 332 }, 333 { 334 "title": "Odia (Oriya)", 335 "value": "or" 336 }, 337 { 338 "title": "Pashto", 339 "value": "ps" 340 }, 341 { 342 "title": "đŽđˇ Persian", 343 "value": "fa" 344 }, 345 { 346 "title": "đľđą Polish", 347 "value": "pl" 348 }, 349 { 350 "title": "đľđš Portuguese", 351 "value": "pt" 352 }, 353 { 354 "title": "đŽđł Punjabi", 355 "value": "pa" 356 }, 357 { 358 "title": "đˇđ´ Romanian", 359 "value": "ro" 360 }, 361 { 362 "title": "đˇđş Russian", 363 "value": "ru" 364 }, 365 { 366 "title": "Samoan", 367 "value": "sm" 368 }, 369 { 370 "title": "đ´ó §ó ˘ó łó Łó ´ó ż Scots Gaelic", 371 "value": "gd" 372 }, 373 { 374 "title": "đˇđ¸ Serbian", 375 "value": "sr" 376 }, 377 { 378 "title": "Sesotho", 379 "value": "st" 380 }, 381 { 382 "title": "Shona", 383 "value": "sn" 384 }, 385 { 386 "title": "Sindhi", 387 "value": "sd" 388 }, 389 { 390 "title": "Sinhala (Sinhalese)", 391 "value": "si" 392 }, 393 { 394 "title": "đ¸đ° Slovak", 395 "value": "sk" 396 }, 397 { 398 "title": "đ¸đŽ Slovenian", 399 "value": "sl" 400 }, 401 { 402 "title": "đ¸đ´ Somali", 403 "value": "so" 404 }, 405 { 406 "title": "đŞđ¸ Spanish", 407 "value": "es" 408 }, 409 { 410 "title": "đ¸đŠ Sundanese", 411 "value": "su" 412 }, 413 { 414 "title": "Swahili", 415 "value": "sw" 416 }, 417 { 418 "title": "đ¸đŞ Swedish", 419 "value": "sv" 420 }, 421 { 422 "title": "đľđ Tagalog (Filipino)", 423 "value": "tl" 424 }, 425 { 426 "title": "Tajik", 427 "value": "tg" 428 }, 429 { 430 "title": "Tamil", 431 "value": "ta" 432 }, 433 { 434 "title": "Tatar", 435 "value": "tt" 436 }, 437 { 438 "title": "Telugu", 439 "value": "te" 440 }, 441 { 442 "title": "Thai", 443 "value": "th" 444 }, 445 { 446 "title": "đšđˇ Turkish", 447 "value": "tr" 448 }, 449 { 450 "title": "đšđ˛ Turkmen", 451 "value": "tk" 452 }, 453 { 454 "title": "đşđŚ Ukrainian", 455 "value": "uk" 456 }, 457 { 458 "title": "Urdu", 459 "value": "ur" 460 }, 461 { 462 "title": "Uyghur", 463 "value": "ug" 464 }, 465 { 466 "title": "Uzbek", 467 "value": "uz" 468 }, 469 { 470 "title": "đťđł Vietnamese", 471 "value": "vi" 472 }, 473 { 474 "title": "đ´ó §ó ˘ó ˇó Źó łó ż Welsh", 475 "value": "cy" 476 }, 477 { 478 "title": "Xhosa", 479 "value": "xh" 480 }, 481 { 482 "title": "đŽđą Yiddish", 483 "value": "yi" 484 }, 485 { 486 "title": "Yoruba", 487 "value": "yo" 488 }, 489 { 490 "title": "Zulu", 491 "value": "zu" 492 } 493 ] 494 }, 495 { 496 "name": "lang2", 497 "title": "Secondary Language", 498 "description": "Preferred language to translate to", 499 "required": true, 500 "type": "dropdown", 501 "default": "de", 502 "data": [ 503 { 504 "title": "đżđŚ Afrikaans", 505 "value": "af" 506 }, 507 { 508 "title": "đŚđą Albanian", 509 "value": "sq" 510 }, 511 { 512 "title": "Amharic", 513 "value": "am" 514 }, 515 { 516 "title": "Arabic", 517 "value": "ar" 518 }, 519 { 520 "title": "đŚđ˛ Armenian", 521 "value": "hy" 522 }, 523 { 524 "title": "đŚđż Azerbaijani", 525 "value": "az" 526 }, 527 { 528 "title": "Basque", 529 "value": "eu" 530 }, 531 { 532 "title": "đ§đž Belarusian", 533 "value": "be" 534 }, 535 { 536 "title": "Bengali", 537 "value": "bn" 538 }, 539 { 540 "title": "đ§đŚ Bosnian", 541 "value": "bs" 542 }, 543 { 544 "title": "đ§đŹ Bulgarian", 545 "value": "bg" 546 }, 547 { 548 "title": "Catalan", 549 "value": "ca" 550 }, 551 { 552 "title": "Cebuano", 553 "value": "ceb" 554 }, 555 { 556 "title": "Chinese (Simplified)", 557 "value": "zh-CN" 558 }, 559 { 560 "title": "Chinese (Traditional)", 561 "value": "zh-TW" 562 }, 563 { 564 "title": "Corsican", 565 "value": "co" 566 }, 567 { 568 "title": "đđˇ Croatian", 569 "value": "hr" 570 }, 571 { 572 "title": "đ¨đż Czech", 573 "value": "cs" 574 }, 575 { 576 "title": "đŠđ° Danish", 577 "value": "da" 578 }, 579 { 580 "title": "đłđą Dutch", 581 "value": "nl" 582 }, 583 { 584 "title": "đŹđ§ English", 585 "value": "en" 586 }, 587 { 588 "title": "Esperanto", 589 "value": "eo" 590 }, 591 { 592 "title": "đŞđŞ Estonian", 593 "value": "et" 594 }, 595 { 596 "title": "đŤđŽ Finnish", 597 "value": "fi" 598 }, 599 { 600 "title": "đŤđˇ French", 601 "value": "fr" 602 }, 603 { 604 "title": "Frisian", 605 "value": "fy" 606 }, 607 { 608 "title": "Galician", 609 "value": "gl" 610 }, 611 { 612 "title": "đŹđŞ Georgian", 613 "value": "ka" 614 }, 615 { 616 "title": "đŠđŞ German", 617 "value": "de" 618 }, 619 { 620 "title": "đŹđˇ Greek", 621 "value": "el" 622 }, 623 { 624 "title": "Gujarati", 625 "value": "gu" 626 }, 627 { 628 "title": "đđš Haitian Creole", 629 "value": "ht" 630 }, 631 { 632 "title": "Hausa", 633 "value": "ha" 634 }, 635 { 636 "title": "đş Hawaiian", 637 "value": "haw" 638 }, 639 { 640 "title": "đŽđą Hebrew", 641 "value": "iw" 642 }, 643 { 644 "title": "đŽđł Hindi", 645 "value": "hi" 646 }, 647 { 648 "title": "Hmong", 649 "value": "hmn" 650 }, 651 { 652 "title": "đđş Hungarian", 653 "value": "hu" 654 }, 655 { 656 "title": "đŽđ¸ Icelandic", 657 "value": "is" 658 }, 659 { 660 "title": "Igbo", 661 "value": "ig" 662 }, 663 { 664 "title": "đŽđŠ Indonesian", 665 "value": "id" 666 }, 667 { 668 "title": "đŽđŞ Irish", 669 "value": "ga" 670 }, 671 { 672 "title": "đŽđš Italian", 673 "value": "it" 674 }, 675 { 676 "title": "đŻđľ Japanese", 677 "value": "ja" 678 }, 679 { 680 "title": "Javanese", 681 "value": "jv" 682 }, 683 { 684 "title": "Kannada", 685 "value": "kn" 686 }, 687 { 688 "title": "đ°đż Kazakh", 689 "value": "kk" 690 }, 691 { 692 "title": "Khmer", 693 "value": "km" 694 }, 695 { 696 "title": "Kinyarwanda", 697 "value": "rw" 698 }, 699 { 700 "title": "đ°đˇ Korean", 701 "value": "ko" 702 }, 703 { 704 "title": "Kurdish", 705 "value": "ku" 706 }, 707 { 708 "title": "Kyrgyz", 709 "value": "ky" 710 }, 711 { 712 "title": "Lao", 713 "value": "lo" 714 }, 715 { 716 "title": "đąđť Latvian", 717 "value": "lv" 718 }, 719 { 720 "title": "đ Latin", 721 "value": "la" 722 }, 723 { 724 "title": "đąđš Lithuanian", 725 "value": "lt" 726 }, 727 { 728 "title": "đąđş Luxembourgish", 729 "value": "lb" 730 }, 731 { 732 "title": "đ˛đ° Macedonian", 733 "value": "mk" 734 }, 735 { 736 "title": "Malagasy", 737 "value": "mg" 738 }, 739 { 740 "title": "đ˛đž Malay", 741 "value": "ms" 742 }, 743 { 744 "title": "Malayalam", 745 "value": "ml" 746 }, 747 { 748 "title": "đ˛đš Maltese", 749 "value": "mt" 750 }, 751 { 752 "title": "đłđż Maori", 753 "value": "mi" 754 }, 755 { 756 "title": "Marathi", 757 "value": "mr" 758 }, 759 { 760 "title": "đ˛đł Mongolian", 761 "value": "mn" 762 }, 763 { 764 "title": "đ˛đ˛ Myanmar (Burmese)", 765 "value": "my" 766 }, 767 { 768 "title": "đłđľ Nepali", 769 "value": "ne" 770 }, 771 { 772 "title": "đłđ´ Norwegian", 773 "value": "no" 774 }, 775 { 776 "title": "Nyanja (Chichewa)", 777 "value": "ny" 778 }, 779 { 780 "title": "Odia (Oriya)", 781 "value": "or" 782 }, 783 { 784 "title": "Pashto", 785 "value": "ps" 786 }, 787 { 788 "title": "đŽđˇ Persian", 789 "value": "fa" 790 }, 791 { 792 "title": "đľđą Polish", 793 "value": "pl" 794 }, 795 { 796 "title": "đľđš Portuguese", 797 "value": "pt" 798 }, 799 { 800 "title": "đŽđł Punjabi", 801 "value": "pa" 802 }, 803 { 804 "title": "đˇđ´ Romanian", 805 "value": "ro" 806 }, 807 { 808 "title": "đˇđş Russian", 809 "value": "ru" 810 }, 811 { 812 "title": "Samoan", 813 "value": "sm" 814 }, 815 { 816 "title": "đ´ó §ó ˘ó łó Łó ´ó ż Scots Gaelic", 817 "value": "gd" 818 }, 819 { 820 "title": "đˇđ¸ Serbian", 821 "value": "sr" 822 }, 823 { 824 "title": "Sesotho", 825 "value": "st" 826 }, 827 { 828 "title": "Shona", 829 "value": "sn" 830 }, 831 { 832 "title": "Sindhi", 833 "value": "sd" 834 }, 835 { 836 "title": "Sinhala (Sinhalese)", 837 "value": "si" 838 }, 839 { 840 "title": "đ¸đ° Slovak", 841 "value": "sk" 842 }, 843 { 844 "title": "đ¸đŽ Slovenian", 845 "value": "sl" 846 }, 847 { 848 "title": "đ¸đ´ Somali", 849 "value": "so" 850 }, 851 { 852 "title": "đŞđ¸ Spanish", 853 "value": "es" 854 }, 855 { 856 "title": "đ¸đŠ Sundanese", 857 "value": "su" 858 }, 859 { 860 "title": "Swahili", 861 "value": "sw" 862 }, 863 { 864 "title": "đ¸đŞ Swedish", 865 "value": "sv" 866 }, 867 { 868 "title": "đľđ Tagalog (Filipino)", 869 "value": "tl" 870 }, 871 { 872 "title": "Tajik", 873 "value": "tg" 874 }, 875 { 876 "title": "Tamil", 877 "value": "ta" 878 }, 879 { 880 "title": "Tatar", 881 "value": "tt" 882 }, 883 { 884 "title": "Telugu", 885 "value": "te" 886 }, 887 { 888 "title": "Thai", 889 "value": "th" 890 }, 891 { 892 "title": "đšđˇ Turkish", 893 "value": "tr" 894 }, 895 { 896 "title": "đšđ˛ Turkmen", 897 "value": "tk" 898 }, 899 { 900 "title": "đşđŚ Ukrainian", 901 "value": "uk" 902 }, 903 { 904 "title": "Urdu", 905 "value": "ur" 906 }, 907 { 908 "title": "Uyghur", 909 "value": "ug" 910 }, 911 { 912 "title": "Uzbek", 913 "value": "uz" 914 }, 915 { 916 "title": "đťđł Vietnamese", 917 "value": "vi" 918 }, 919 { 920 "title": "đ´ó §ó ˘ó ˇó Źó łó ż Welsh", 921 "value": "cy" 922 }, 923 { 924 "title": "Xhosa", 925 "value": "xh" 926 }, 927 { 928 "title": "đŽđą Yiddish", 929 "value": "yi" 930 }, 931 { 932 "title": "Yoruba", 933 "value": "yo" 934 }, 935 { 936 "title": "Zulu", 937 "value": "zu" 938 } 939 ] 940 }, 941 { 942 "name": "autoInput", 943 "title": "Autofill Input", 944 "label": "Automatically fill input with selected text.", 945 "description": "When enabled, selected text from the foremost app will be automatically filled in the input field.", 946 "required": false, 947 "type": "checkbox", 948 "default": true 949 }, 950 { 951 "name": "defaultAction", 952 "title": "Default Action", 953 "description": "The default action to take when translating.", 954 "type": "dropdown", 955 "required": false, 956 "default": "copy", 957 "data": [ 958 { 959 "title": "Copy to Clipboard", 960 "value": "copy" 961 }, 962 { 963 "title": "Paste to App", 964 "value": "paste" 965 } 966 ] 967 }, 968 { 969 "name": "proxy", 970 "title": "HTTP Proxy URL", 971 "description": "HTTP proxy URL to use for translation requests (e.g. http://proxy.example.com:8080)", 972 "type": "textfield", 973 "required": false 974 } 975 ], 976 "dependencies": { 977 "undici": "^5.12.0", 978 "@raycast/api": "^1.47.3", 979 "@raycast/utils": "^1.4.16", 980 "google-tts-api": "^2.0.2" 981 }, 982 "devDependencies": { 983 "@types/node": "~16.10.0", 984 "@types/react": "^17.0.28", 985 "@typescript-eslint/eslint-plugin": "^5.0.0", 986 "@typescript-eslint/parser": "^5.0.0", 987 "eslint": "^7.32.0", 988 "eslint-config-prettier": "^8.3.0", 989 "prettier": "^3.0.1", 990 "typescript": "^4.4.3" 991 }, 992 "scripts": { 993 "build": "ray build -e dist", 994 "dev": "ray develop", 995 "fix-lint": "ray lint --fix", 996 "lint": "ray lint", 997 "publish": "ray publish" 998 } 999 }