irongit

A Neovim plugin enabling you to solve LeetCode problems.

docs(readme): todo section

kawreauthored
parent a77edb2commit ed60da649f3bedefb2c289a1350c25b7f2985324Browse files

4 files changed, +4 -3

+1-1README.md
@@ -297,7 +297,7 @@ return {
297297
298298 ## ✅ Todo
299299
300-- \[ \] CN version
300+- \[x\] CN version
301301 - \[x\] Statistics menu page
302302 - \[ \] Docs
303303 - \[x\] Hints pop-up
+1-1README.zh.md
@@ -293,7 +293,7 @@ return {
293293
294294 ## ✅ 待办事项
295295
296-- \[ \] 中文版本
296+- \[x\] 中文版本
297297 - \[x\] 统计菜单页面
298298 - \[ \] 文档
299299 - \[x\] 提示弹出窗口
+1-0lua/leetcode/config/template.lua
@@ -33,6 +33,7 @@ local M = {
3333 cn = { -- leetcode.cn
3434 enabled = false, ---@type boolean
3535 translate_problems = true, ---@type boolean
36+ translator = true, ---@type boolean
3637 },
3738
3839 ---@type string
+1-1lua/leetcode/translator/init.lua
@@ -93,7 +93,7 @@ local function t(text)
9393 return text
9494 end
9595
96- return not config.is_cn and text or translate[txt]
96+ return config.is_cn and config.user.cn.translator and translate[txt] or text
9797 end
9898
9999 ---@param text string|string[]