diff --git a/astro.config.ts b/astro.config.ts index a28a194..c622789 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -20,15 +20,6 @@ export default defineConfig({ }, }), ], - i18n: { - defaultLocale: "en", - locales: ["en", "es", "fr", "ja", "pt", "zh"], - routing: { - prefixDefaultLocale: true, - redirectToDefaultLocale: false, - strategy: "pathname", - }, - }, server: { port: 12499, host: true, diff --git a/bun.lockb b/bun.lockb index 021abbd..866c195 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6fdf83a..35f151f 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,13 @@ }, "dependencies": { "@astrojs/check": "^0.4.1", - "@astrojs/node": "^8.1.0", - "astro": "^4.2.5", - "astro-icon": "^1.0.3", + "@astrojs/node": "^8.2.0", + "@fontsource-variable/murecho": "^5.0.17", + "@fontsource-variable/vollkorn": "^5.0.19", + "accept-language": "^3.0.18", + "astro": "^4.3.0", + "astro-icon": "^1.0.4", + "htmx.org": "^1.9.10", "tippy.js": "^6.3.7", "ua-parser-js": "^1.0.37", "zod": "^3.22.4" @@ -25,9 +29,9 @@ "astro-meta-tags": "^0.2.1", "autoprefixer": "^10.4.17", "bun-types": "^1.0.25", + "npm-check-updates": "^16.14.14", "postcss-preset-env": "^9.3.0", "ts-node": "^10.9.2", - "typescript": "^5.3.3", - "npm-check-updates": "^16.14.14" + "typescript": "^5.3.3" } } diff --git a/public/css/sanitize.min.css b/public/css/sanitize.min.css deleted file mode 100644 index 9f9d08c..0000000 --- a/public/css/sanitize.min.css +++ /dev/null @@ -1 +0,0 @@ -*,::after,::before{box-sizing:border-box;background-repeat:no-repeat}::after,::before{text-decoration:inherit;vertical-align:inherit}:where(:root){cursor:default;line-height:1.5;overflow-wrap:break-word;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}:where(body){margin:0}:where(h1){font-size:2em;margin:0.67em 0}:where(dl,ol,ul):where(dl,ol,ul){margin:0}:where(hr){color:inherit;height:0}:where(nav):where(ol,ul){list-style-type:none;padding:0}:where(nav li)::before{content:"\200B";float:left}:where(pre){font-family:monospace, monospace;font-size:1em;overflow:auto}:where(abbr[title]){text-decoration:underline;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,samp){font-family:monospace, monospace;font-size:1em}:where(small){font-size:80%}:where(audio,canvas,iframe,img,svg,video){vertical-align:middle}:where(iframe){border-style:none}:where(svg:not([fill])){fill:currentColor}:where(table){border-collapse:collapse;border-color:inherit;text-indent:0}:where(button,input,select){margin:0}:where(button,[type="button" i],[type="reset" i],[type="submit" i]){-webkit-appearance:button}:where(fieldset){border:1px solid #a0a0a0}:where(progress){vertical-align:baseline}:where(textarea){margin:0;resize:vertical}:where([type="search" i]){-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:0.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(dialog){background-color:white;border:solid;color:black;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:fit-content}:where(dialog:not([open])){display:none}:where(details > summary:first-of-type){display:list-item}:where([aria-busy="true" i]){cursor:progress}:where([aria-controls]){cursor:pointer}:where([aria-disabled="true" i],[disabled]){cursor:not-allowed}:where([aria-hidden="false" i][hidden]){display:initial}:where([aria-hidden="false" i][hidden]:not(:focus)){clip:rect(0, 0, 0, 0);position:absolute} \ No newline at end of file diff --git a/src/components/AppLayout/components/CurrencySelector.astro b/src/components/AppLayout/components/CurrencySelector.astro index 976e153..d68df9b 100644 --- a/src/components/AppLayout/components/CurrencySelector.astro +++ b/src/components/AppLayout/components/CurrencySelector.astro @@ -9,17 +9,45 @@ interface Props { } const { withTitle, class: className } = Astro.props; -const { t } = await getI18n(Astro.currentLocale!); +const { t } = await getI18n(Astro.locals.currentLocale); + +const { currentCurrency } = Astro.locals; --- +{ + /* ------------------------------------------- HTML ------------------------------------------- */ +} + - - USD - EUR - +
+ USD + EUR +