diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-26 11:54:13 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-26 11:54:13 +0800 |
commit | 46759b82d43dff5d4f9a94df17ed536d15cee176 (patch) | |
tree | 67e2515f29149e8a28e8cb953f42f3b860652b70 /locale | |
parent | 91f13fca126d2a71d844245822517d172ec95478 (diff) | |
download | lua-language-server-46759b82d43dff5d4f9a94df17ed536d15cee176.zip |
配置翻译使用本地化功能实现
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en.json | 16 | ||||
-rw-r--r-- | locale/zh-cn.json | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/locale/en.json b/locale/en.json new file mode 100644 index 00000000..921e5ba3 --- /dev/null +++ b/locale/en.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "contents": { + "package": { + "config.runtime.version": "Lua runtime version.", + "config.runtime.path": "package.path", + "config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).", + "config.diagnostics.globals": "Defined global variables.", + "config.workspace.ignoreDir": "Ignored directories.", + "config.workspace.ignoreSubmodules": "Ignore submodules.", + "config.workspace.useGitIgnore": "Ignore files list in \".gitignore\" .", + "config.workspace.maxPreload": "Max preloaded files.", + "config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading." + } + } +} diff --git a/locale/zh-cn.json b/locale/zh-cn.json new file mode 100644 index 00000000..d80ab846 --- /dev/null +++ b/locale/zh-cn.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "contents": { + "package": { + "config.runtime.version": "Lua运行版本。", + "config.runtime.path": "package.path", + "config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。", + "config.diagnostics.globals": "已定义的全局变量。", + "config.workspace.ignoreDir": "忽略的目录。", + "config.workspace.ignoreSubmodules": "忽略子模块。", + "config.workspace.useGitIgnore": "忽略 \".gitignore\" 中列举的文件。", + "config.workspace.maxPreload": "最大预加载文件数。", + "config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。" + } + } +} |