{"id":118,"date":"2025-01-15T08:04:00","date_gmt":"2025-01-15T00:04:00","guid":{"rendered":"https:\/\/blog.liu-qi.cn\/?p=118"},"modified":"2026-04-24T02:22:18","modified_gmt":"2026-04-23T18:22:18","slug":"%e5%b0%8f%e7%ba%a2%e4%b9%a6%e8%8b%b1%e6%96%87%e8%af%84%e8%ae%ba%e5%a4%aa%e5%a4%9a%e7%9c%8b%e4%b8%8d%e6%87%82%e4%ba%86%ef%bc%9f%e6%8e%a8%e8%8d%90%e4%bd%a0%e8%af%95%e8%af%95%e6%b2%89%e6%b5%b8%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/en.blog.liu-qi.cn\/2025\/01\/15\/%e5%b0%8f%e7%ba%a2%e4%b9%a6%e8%8b%b1%e6%96%87%e8%af%84%e8%ae%ba%e5%a4%aa%e5%a4%9a%e7%9c%8b%e4%b8%8d%e6%87%82%e4%ba%86%ef%bc%9f%e6%8e%a8%e8%8d%90%e4%bd%a0%e8%af%95%e8%af%95%e6%b2%89%e6%b5%b8%e5%bc%8f\/","title":{"rendered":"Too Many English Comments on Xiaohongshu to Understand? Try Glarity AI Translation"},"content":{"rendered":"<p>Immersive translation is not a new concept, and it has two main advantages:<\/p>\n<p>First, you can choose to keep the original text, allowing you to compare the original and translated versions side by side, which is convenient for understanding or learning.<\/p>\n<p>Second, you can opt to call large language models, which can produce more comprehensible, human-like output for complex texts unsuitable for machine translation.<\/p>\n<p>If your browser has an AI assistant plugin installed, it likely includes this feature, such as Doubao and Zhipu Qingyan.<\/p>\n<p>Typically, you can find the translation function in a floating bubble or sidebar. For example, the screenshot below shows the translation entry point in Doubao&#8217;s floating bubble\u2014the underlined Chinese text circled in red is the translation result. If you prefer using the sidebar, opening it will also show a prompt to translate the page.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/001-e9b840b9adf2.png\" alt=\"\" \/><\/p>\n<p>In addition to calling Doubao, translation services can also use standard machine translation without large models, such as Microsoft Translator.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/002-c08345297d93.png\" alt=\"\" \/><\/p>\n<p>Zhipu Qingyan is similar to Doubao, with entry points in both the floating bubble and sidebar.<\/p>\n<p>However, Zhipu has fewer settings; it cannot use machine translation, and the current plugin version does not support translation annotations.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/003-f8ffa39bc813.png\" alt=\"\" \/><\/p>\n<p>I personally prefer using the Glarity browser extension.<\/p>\n<p>There are a few points that make it more comfortable for me: \u2460 Machine translation can use Google Translate \u2461 It calls large models via API, allowing you to choose which model to use \u2462 The translated text has more style options.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/004-648ef06f1594.png\" alt=\"\" \/><\/p>\n<p>If you don&#8217;t mind a slightly more involved process, you can refer to my approach:<\/p>\n<p>First, install the extension from the Chrome Web Store.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/005-303adfd43c70.png\" alt=\"\" \/><\/p>\n<p>Then, if you are willing to pay, you can directly subscribe to their membership to gain the ability to call large models like GPT-4o\/Claude 3.5 Sonnet\/Gemini Pro.<\/p>\n<p>Of course, I prefer not to pay. Glarity also allows you to use your own API Key and endpoint, so I choose to fill in a custom API Key.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/006-90a2843989cc.png\" alt=\"\" \/><\/p>\n<p>Technically, it only supports API Keys from OpenAI, Azure, and Google Gemini, but we can use One API to convert almost all large models on the market into OpenAI&#8217;s API format. Therefore, as long as it supports OpenAI&#8217;s API and allows custom API endpoints, it effectively enables calling most AI large models available.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/007-eb72f41e9d69.png\" alt=\"\" \/><\/p>\n<p>One API is a bit complex and won&#8217;t be detailed here; instead, I recommend using DeepSeek.<\/p>\n<p>First, DeepSeek&#8217;s capabilities are strong enough. Second, DeepSeek natively supports OpenAI&#8217;s SDK (Qianwen also does), so it can be used directly without One API conversion.<\/p>\n<p>Go directly to the DeepSeek official website to register and select the &#8216;Access API&#8217; option on the right.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/008-953027424cb0.png\" alt=\"\" \/><\/p>\n<p>After registration, you get a free balance of 10 yuan, equivalent to about 5 million tokens, which can last a long time if used only for translation.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/009-852db9a972e1.png\" alt=\"\" \/><\/p>\n<p>Then, on the left side of the page, select &#8216;API keys&#8217; to create an API key.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/010-72911b20bbef.png\" alt=\"\" \/><\/p>\n<p>Return to the Glarity settings interface and fill in the fields as shown in the image below.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/011-ead182dad9fd.png\" alt=\"\" \/><\/p>\n<pre><code>Model\uff1adeepseek-chat\nAPI Host\uff1ahttps:\/\/api.deepseek.com\nAPI Path\uff1a\/v1\/chat\/completions\nTemperature\uff1a0.7-1<\/code><\/pre>\n<p>If using AI translation, select the first AI LLM engine; if machine translation is sufficient, choosing Google Translate also works.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/012-0b7d8e764917.png\" alt=\"\" \/><\/p>\n<p>When calling DeepSeek via API, its content moderation for sensitive text is less strict. Especially in translation scenarios, some content that prevents Doubao and Zhipu from working, such as titles of certain Japanese films, can be translated normally using this approach.<\/p>\n<p>There are also more style options for the translated text, such as bold, italics, underline, and highlight\u2014for example, I prefer using green highlights.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/013-f791e9a1f650.png\" alt=\"\" \/><\/p>\n<p>Glarity also has a key feature worth mentioning separately: Quick Commands.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/014-aa1504df80f6.png\" alt=\"\" \/><\/p>\n<p>With Quick Commands, you can quickly process selected text using a large model, and it supports custom prompts. If you have a lot of content in your browser that needs formatting, analysis, or processing by a large model, this Quick Command feature will be very efficient.<\/p>\n<p>(PS: Doubao also has this feature, but it uses Doubao&#8217;s model.)<\/p>\n<p>Of course, for Xiaohongshu, immersive translation has its limitations: it only works in web browsers.<\/p>\n<p>If you want to see foreign language translations directly in the app, you will have to wait for official action from Xiaohongshu. This is not without precedent, as the X app has a built-in translation feature.<\/p>\n<p>Once the preceding protocols are finalized, implementation will be swift.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.liu-qi.cn\/wp-content\/uploads\/2026\/04\/015-faa806bbd70b.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Glarity is a browser extension that uses AI models or machine translation to provide immersive, bilingual translation for websites like Xiaohongshu.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[16,25,23,18],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-articles","tag-api","tag-chrome-","tag-deepseek","tag-18"],"_links":{"self":[{"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":1,"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":1035,"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions\/1035"}],"wp:attachment":[{"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/en.blog.liu-qi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}