Skip to content

Commit

Permalink
fix: 调整国际化配置
Browse files Browse the repository at this point in the history
  • Loading branch information
beezen committed Jan 12, 2024
1 parent cf0796e commit 831a836
Show file tree
Hide file tree
Showing 29 changed files with 129 additions and 3,183 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
dist
/_*
!__tests__
coverage/lcov-report/

## lock 文件
yarn.lock
Expand Down
8 changes: 2 additions & 6 deletions __tests__/utils/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ describe("utils", () => {
initLanguage(); // 初始化 i18next
const langCn = require("../../src/lang/default/zh/base.json");
const langEn = require("../../src/lang/default/en/base.json");
expect(printLog("MSG_showVersion", { isPrint: false, lng: "cn" })).toBe(
langCn["MSG_showVersion"]
);
expect(printLog("MSG_showVersion", { isPrint: false, lng: "en" })).toBe(
langEn["MSG_showVersion"]
);
expect(printLog("command.version", { isPrint: false, lng: "cn" })).toBe(langCn.command.version);
expect(printLog("command.version", { isPrint: false, lng: "en" })).toBe(langEn.command.version);
});

it("getPackageManager", () => {
Expand Down
4 changes: 2 additions & 2 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1704934972000" clover="3.2.0">
<project timestamp="1704934972000" name="All files">
<coverage generated="1705028690387" clover="3.2.0">
<project timestamp="1705028690387" name="All files">
<metrics statements="136" coveredstatements="125" conditionals="75" coveredconditionals="58" methods="20" coveredmethods="20" elements="231" coveredelements="203" complexity="0" loc="136" ncloc="136" packages="4" files="5" classes="5"/>
<package name="actions">
<metrics statements="55" coveredstatements="50" conditionals="27" coveredconditionals="18" methods="8" coveredmethods="8"/>
Expand Down
4 changes: 2 additions & 2 deletions coverage/coverage-final.json

Large diffs are not rendered by default.

385 changes: 0 additions & 385 deletions coverage/lcov-report/actions/base.js.html

This file was deleted.

116 changes: 0 additions & 116 deletions coverage/lcov-report/actions/index.html

This file was deleted.

224 changes: 0 additions & 224 deletions coverage/lcov-report/base.css

This file was deleted.

0 comments on commit 831a836

Please sign in to comment.