refactor: use online query method template instead of backend.query todo online query

This commit is contained in:
JuanZoran
2023-03-18 21:31:14 +08:00
parent b2cafe3448
commit 52d2741804
7 changed files with 119 additions and 205 deletions

View File

@@ -9,6 +9,7 @@ local Trans = require('Trans')
---@field mode string @The mode of the str
---@field result table<string, TransResult|nil|false> @The result of the translation
---@field frontend TransFrontend
---@field trace table<string, string> debug message
---@field backends table<string, TransBackend>
local M = {}
M.__index = M
@@ -28,6 +29,7 @@ function M.new(opts)
str = str,
mode = mode,
result = {},
trace = {},
}, M)