Skip to content

Commit e03889e

Browse files
authored
Merge pull request #5 from scroll-tech/language-selector
Language selector
2 parents 2f7b5bb + e4b9f05 commit e03889e

File tree

118 files changed

+2763
-777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2763
-777
lines changed

astro-i18next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
export default {
33
defaultLocale: "en",
44
showDefaultLocale: true,
5-
locales: ["en", "zh", "es"],
5+
locales: ["en", "es"],
66
load: ["server", "client"],
77
}

astro.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from "astro/config"
22
import preact from "@astrojs/preact"
33
import react from "@astrojs/react"
4+
import svgr from "vite-plugin-svgr"
45
import astroI18next from "astro-i18next"
56
import { astroCallouts, asideAutoImport } from "./integrations/astro-callouts"
67
import { solidityRemixCode, codeSampleAutoImport } from "./integrations/solidity-remix"
@@ -32,6 +33,7 @@ export default defineConfig({
3233
preact({
3334
compat: true,
3435
}),
36+
3537
sitemap({
3638
changefreq: "daily",
3739
}),
@@ -47,6 +49,9 @@ export default defineConfig({
4749
}),
4850
astroI18next(),
4951
],
52+
vite: {
53+
plugins: [svgr()],
54+
},
5055
markdown: {
5156
drafts: true,
5257
remarkPlugins: [remarkMath, remarkGfm],

integrations/utils/makeComponentNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function makeComponentNode(
2121
type: "mdxJsxFlowElement",
2222
name,
2323
attributes: Object.entries(attributes)
24-
// Filter out non-truthy attributes to avoid empty attrs being parsed as `true`.
24+
// Filter out non-truthy attributes to avoid empty attributes being parsed as `true`.
2525
.filter(([_k, v]) => v !== false && Boolean(v))
2626
.map(([name, value]) => ({
2727
type: "mdxJsxAttribute",

0 commit comments

Comments
 (0)