PNL
    • Sharing
    • Captionz Trove
    • Captionz
    • PDF Reader
    • Register
    • Login

    Deepl Translator (EN-CN)
    Add to Dictionariez

    Dictionariez Trove
    en-cn chinese translation deepl
    2
    10
    392
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xiaomren
      last edited by river

      {
          "dictName": "Deepl Translator",
          "windowUrl": "https://www.deepl.com/en/translator#en/zh-hans/",
          "inputSelector": "#textareasContainer div[contenteditable]",
          "translationPrompt": "<word>"
      }
      
      riverR 1 Reply Last reply Reply Quote 1
      • riverR
        river
        last edited by

        Thank you for the work. I edited it a bit to quote the css prop to make the json correct.

        Check it out.

        An atypical programmer making apps for educational purpose.

        X 1 Reply Last reply Reply Quote 0
        • X
          xiaomren @river
          last edited by

          @river Thank you for helping me correct the mistakes. This is my first time trying this kind of work, and I find it both novel and interesting.

          riverR 1 Reply Last reply Reply Quote 1
          • riverR
            river @xiaomren
            last edited by

            @xiaomren

            Congrats, now you are a programmer!
            Keep learning, the world is your oyster.

            An atypical programmer making apps for educational purpose.

            1 Reply Last reply Reply Quote 0
            • riverR
              river @xiaomren
              last edited by

              @xiaomren
              Oops, you added an extra } after <word>. Just a minor mistake, I fixed it. No worry 🙂

              An atypical programmer making apps for educational purpose.

              X 1 Reply Last reply Reply Quote 0
              • X
                xiaomren @river
                last edited by

                @river I see. I keep this symbol because I've noticed DeepL translations are sometimes incomplete. For instance, when I feed it two paragraphs, it might only translate the first couple of sentences in the first paragraph, leaving the rest untouched. But after adding this symbol, I get a full translation. The only issue is that a "}" appears at the end of each translated text, which I don't quite understand. It's a temporary workaround, I suppose.

                riverR 1 Reply Last reply Reply Quote 0
                • riverR
                  river @xiaomren
                  last edited by river

                  @xiaomren Aha, that's interesting. Apologize for the change, didn't know it's a workaround. Thanks for the explanation and effort. I reverted it back then.

                  An atypical programmer making apps for educational purpose.

                  X 1 Reply Last reply Reply Quote 0
                  • X
                    xiaomren @river
                    last edited by

                    @river These changes do offer some improvements. However, upon closer inspection, there are still some issues. While the translation is better than running it directly on the official website, there are still some missing sentences.

                    riverR 1 Reply Last reply Reply Quote 0
                    • riverR
                      river @xiaomren
                      last edited by

                      @xiaomren

                      How about now? I changed it to a dynamic dict. Seems it's more accurate now.

                      An atypical programmer making apps for educational purpose.

                      X 1 Reply Last reply Reply Quote 0
                      • X
                        xiaomren @river
                        last edited by

                        @river After you modified the code, it runs perfectly. Thank you!

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Popular topics
                        • Train Chinese
                          S
                          shshgh
                          0
                          2
                          78

                        • PDF Reader
                          D
                          dyess002
                          1
                          3
                          132

                        • You Asked, I Listened: PDF Support is Finally Here in Dictionariez!
                          riverR
                          river
                          0
                          1
                          57

                        • Youglish for Polish
                          Victor 0V
                          Victor 0
                          1
                          1
                          78

                        • CNTRL dictionary
                          B
                          bimbim
                          1
                          1
                          81

                        • Le Robert French dictionary
                          B
                          bimbim
                          1
                          1
                          81

                        • Larousse English > French
                          B
                          bimbim
                          1
                          1
                          83

                        • Larousse French > English
                          B
                          bimbim
                          1
                          1
                          82
                        Buy Me A Coffee Support me!
                        Powered by pnlpal open-source | Based on NodeBB