• Sharing
  • Captionz Trove
  • Captionz
  • PDF Reader
  • Register
  • Login
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
368
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 23 Oct 2024, 04:04

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

      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 23 Oct 2024, 18:40 Reply Quote 0
      • X
        xiaomren @river
        last edited by 23 Oct 2024, 18:40

        @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.

        R 1 Reply Last reply 23 Oct 2024, 18:42 Reply Quote 1
        • R
          river @xiaomren
          last edited by 23 Oct 2024, 18:42

          @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
          • R
            river @xiaomren
            last edited by 26 Oct 2024, 08:08

            @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 26 Oct 2024, 12:19 Reply Quote 0
            • X
              xiaomren @river
              last edited by 26 Oct 2024, 12:19

              @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.

              R 1 Reply Last reply 26 Oct 2024, 15:53 Reply Quote 0
              • R
                river @xiaomren
                last edited by river 26 Oct 2024, 15:53

                @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 26 Oct 2024, 16:05 Reply Quote 0
                • X
                  xiaomren @river
                  last edited by 26 Oct 2024, 16:05

                  @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.

                  R 1 Reply Last reply 26 Oct 2024, 16:16 Reply Quote 0
                  • R
                    river @xiaomren
                    last edited by 26 Oct 2024, 16:16

                    @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 26 Oct 2024, 17:10 Reply Quote 0
                    • X
                      xiaomren @river
                      last edited by 26 Oct 2024, 17:10

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

                      1 Reply Last reply Reply Quote 1
                      • First post
                        1/10
                        Last post
                      Popular topics
                      • PDF Reader
                        D
                        dyess002
                        20 days ago
                        1
                        3
                        84

                      • Train Chinese
                        S
                        shshgh
                        9 days ago
                        0
                        2
                        34

                      • Lookup history not working
                        O
                        Oleg Lapchynskyi
                        26 days ago
                        1
                        2
                        81

                      • Youglish for Polish
                        V
                        Victor 0
                        15 days ago
                        1
                        1
                        39

                      • CNTRL dictionary
                        B
                        bimbim
                        15 days ago
                        1
                        1
                        42

                      • Le Robert French dictionary
                        B
                        bimbim
                        15 days ago
                        1
                        1
                        37

                      • Larousse English > French
                        B
                        bimbim
                        15 days ago
                        1
                        1
                        38

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