Skip to content

Commit 2ccd180

Browse files
committed
test: 💍 更新 i18n 相关测试用例的快照
1 parent 20c6fca commit 2ccd180

File tree

25 files changed

+25
-25
lines changed
  • modules/code-generator/test-cases
    • rax-app
      • demo01/expected/demo-project/src
      • demo02/expected/demo-project/src
      • demo03/expected/demo-project/src
      • demo04/expected/demo-project/src
      • demo05/expected/demo-project/src
      • demo06-jsslot/expected/demo-project/src
      • demo07-newline-in-props/expected/demo-project/src
      • demo08-jsslot-with-multiple-children/expected/demo-project/src
      • demo09-jsslot-with-conditional-children/expected/demo-project/src
      • demo10-jsslot-with-loop-children/expected/demo-project/src
      • demo11-utils-name-alias/expected/demo-project/src
      • demo12-refs/expected/demo-project/src
      • demo13-datasource-prop/expected/demo-project/src
    • react-app
      • demo1/expected/demo-project/src
      • demo2-utils-name-alias/expected/demo-project/src
      • demo2/expected/demo-project/src
      • demo3/expected/demo-project/src
      • demo4/expected/demo-project/src
      • demo5/expected/demo-project/src
      • demo6-literal-condition/expected/demo-project/src
      • demo7-literal-condition2/expected/demo-project/src
      • demo8-datasource-prop/expected/demo-project/src
      • demo9-datasource-engine/expected/demo-project/src
      • demo_10-jsslot/expected/demo-project/src
      • demo_11-jsslot-2/expected/demo-project/src

25 files changed

+25
-25
lines changed

modules/code-generator/test-cases/rax-app/demo01/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const _inject2 = (target) => {
4242
// 优先取直接传过来的语料
4343
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
4444
if (localMsg != null) {
45-
return format(localMsg, variables);
45+
return format(localMsg, t.params);
4646
}
4747

4848
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo02/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const _inject2 = (target) => {
4242
// 优先取直接传过来的语料
4343
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
4444
if (localMsg != null) {
45-
return format(localMsg, variables);
45+
return format(localMsg, t.params);
4646
}
4747

4848
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo03/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const _inject2 = (target) => {
4242
// 优先取直接传过来的语料
4343
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
4444
if (localMsg != null) {
45-
return format(localMsg, variables);
45+
return format(localMsg, t.params);
4646
}
4747

4848
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo04/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const _inject2 = (target) => {
4242
// 优先取直接传过来的语料
4343
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
4444
if (localMsg != null) {
45-
return format(localMsg, variables);
45+
return format(localMsg, t.params);
4646
}
4747

4848
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo05/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const _inject2 = (target) => {
4949
// 优先取直接传过来的语料
5050
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
5151
if (localMsg != null) {
52-
return format(localMsg, variables);
52+
return format(localMsg, t.params);
5353
}
5454

5555
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo06-jsslot/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const _inject2 = (target) => {
4949
// 优先取直接传过来的语料
5050
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
5151
if (localMsg != null) {
52-
return format(localMsg, variables);
52+
return format(localMsg, t.params);
5353
}
5454

5555
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo07-newline-in-props/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const _inject2 = (target) => {
4949
// 优先取直接传过来的语料
5050
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
5151
if (localMsg != null) {
52-
return format(localMsg, variables);
52+
return format(localMsg, t.params);
5353
}
5454

5555
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo08-jsslot-with-multiple-children/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const _inject2 = (target) => {
4949
// 优先取直接传过来的语料
5050
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
5151
if (localMsg != null) {
52-
return format(localMsg, variables);
52+
return format(localMsg, t.params);
5353
}
5454

5555
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo09-jsslot-with-conditional-children/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const _inject2 = (target) => {
4949
// 优先取直接传过来的语料
5050
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
5151
if (localMsg != null) {
52-
return format(localMsg, variables);
52+
return format(localMsg, t.params);
5353
}
5454

5555
// 其次用项目级别的

modules/code-generator/test-cases/rax-app/demo10-jsslot-with-loop-children/expected/demo-project/src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const _inject2 = (target) => {
4949
// 优先取直接传过来的语料
5050
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')];
5151
if (localMsg != null) {
52-
return format(localMsg, variables);
52+
return format(localMsg, t.params);
5353
}
5454

5555
// 其次用项目级别的

0 commit comments

Comments
 (0)