From 998927a2c8f33dabf8b079657f111a03f37570af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 21 Jul 2023 14:28:51 +0800 Subject: =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/core/diagnostics/missing-fields.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/core') diff --git a/script/core/diagnostics/missing-fields.lua b/script/core/diagnostics/missing-fields.lua index e23352bc..4b65172c 100644 --- a/script/core/diagnostics/missing-fields.lua +++ b/script/core/diagnostics/missing-fields.lua @@ -2,6 +2,7 @@ local vm = require 'vm' local files = require 'files' local guide = require 'parser.guide' local await = require 'await' +local lang = require 'language' ---@async return function (uri, callback) @@ -66,7 +67,7 @@ return function (uri, callback) callback { start = src.start, finish = src.finish, - message = string.format('Missing fields: %s', table.concat(missedKeys, ', ')), + message = lang.script('DIAG_MISSING_FIELDS', table.concat(missedKeys, ', ')), } end) end -- cgit v1.2.3