Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9292207

Browse files
日本語言語対応
1 parent 100d845 commit 9292207

File tree

23 files changed

+5168
-4
lines changed

23 files changed

+5168
-4
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ server/node-service/.yarn/cache/*.zip
66
.metadata/
77
.DS_Store
88
client/node_modules/
9+
client/packages/lowcoder-comps/build/
10+
client/packages/lowcoder-comps/lowcoder-comps/
911
client/packages/lowcoder-plugin-demo/.yarn/install-state.gz
1012
client/packages/lowcoder-plugin-demo/yarn.lock
1113
client/packages/lowcoder-plugin-demo/.yarn/cache/@types-node-npm-16.18.68-56f72825c0-094ae9ed80.zip

‎client/packages/lowcoder-cli-template-typescript/src/i18n/comps/index.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function getEchartsLocale() {
1818
return "PT";
1919
case "zh":
2020
return "ZH";
21+
case "ja":
22+
return "JA";
2123
}
2224
});
2325
}
@@ -28,6 +30,8 @@ export function getCalendarLocale() {
2830
return "zh-cn";
2931
case "pt":
3032
return "pt-br";
33+
case "ja":
34+
return "ja";
3135
default:
3236
return "en-gb";
3337
}

‎client/packages/lowcoder-cli-template-typescript/src/i18n/comps/locales/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// fallback example: current locale is zh-HK, fallback order is zhHK => zh => en
33
export * from "./en";
44
export * from "./zh";
5+
export * from "./ja";
56

67
export * from "./enObj";
78
export * from "./zhObj";
9+
export * from "./jaObj";
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import {en} from "./en"
2+
export const ja: typeof en = {
3+
...en
4+
};
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { I18nObjects } from "./types";
2+
3+
export const jaObj: I18nObjects = {
4+
defaultData: [
5+
{
6+
id : 1,
7+
color: 'gray',
8+
description: 'Validation: Salesforce Integration',
9+
x: 25,
10+
size: 15
11+
},
12+
{
13+
id : 2,
14+
color: 'maroon',
15+
description: 'Renewals',
16+
x: 80,
17+
size: 10 },
18+
{
19+
id : 3,
20+
color: 'maroon',
21+
description: 'Refactor: Fancy Pants',
22+
x: 35,
23+
size: 10
24+
},
25+
{
26+
id : 4,
27+
color: 'cyan',
28+
description: 'Refactor: Lighthouse Orbs',
29+
x: 45,
30+
size: 10
31+
},
32+
{
33+
id : 5,
34+
color: 'yellow',
35+
description: 'Migration & Legacy Data Updates',
36+
x: 50,
37+
size: 20
38+
}
39+
],
40+
};

‎client/packages/lowcoder-comps/src/i18n/comps/index.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export function getEchartsLocale() {
1717
return "PT";
1818
case "zh":
1919
return "ZH";
20+
case "ja":
21+
return "JA";
2022
}
2123
});
2224
}
@@ -27,6 +29,8 @@ export function getCalendarLocale() {
2729
return "zh-cn";
2830
case "pt":
2931
return "pt-br";
32+
case "ja":
33+
return "ja";
3034
default:
3135
return "en-gb";
3236
}

‎client/packages/lowcoder-comps/src/i18n/comps/locales/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// fallback example: current locale is zh-HK, fallback order is zhHK => zh => en
33
export * from "./en";
44
export * from "./zh";
5+
export * from "./ja";
56

67
export * from "./enObj";
78
export * from "./zhObj";
9+
export * from "./jaObj";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /