Skip to content

Commit 16641d9

Browse files
committed
Use import attribute
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 552f53e commit 16641d9

File tree

8 files changed

+121
-119
lines changed

8 files changed

+121
-119
lines changed

de/de.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "de",
1112
lang: "de",
1213
};

en/en.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "en",
1112
lang: "en",
1213
};

fr/fr.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "fr",
1112
lang: "fr",
1213
};

ja/ja.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "ja",
1112
lang: "ja",
1213
};

package-lock.json

Lines changed: 65 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ru/ru.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "ru",
1112
lang: "ru",
1213
};

uk/uk.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "ua",
1112
lang: "ua",
1213
};

zh-Hans/zh-Hans.11tydata.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { createRequire } from "node:module";
2-
3-
const require = createRequire(import.meta.url);
1+
import intro from "./intro.json" with { type: "json" };
2+
import proposals from "./proposals.json" with { type: "json" };
3+
import site from "./site.json" with { type: "json" };
4+
import stage3 from "./stage3.json" with { type: "json" };
45

56
export default {
6-
intro: require("./intro.json"),
7-
proposals: require("./proposals.json"),
8-
site: require("./site.json"),
9-
stage3: require("./stage3.json"),
7+
intro: intro,
8+
proposals: proposals,
9+
site: site,
10+
stage3: stage3,
1011
locale: "zh-Hans",
1112
lang: "zh-Hans",
1213
};

0 commit comments

Comments
 (0)