Skip to content

Commit

Permalink
fix: i18n magics
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Jan 2, 2024
1 parent cbd08f4 commit 1e6a7eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 289 deletions.
6 changes: 6 additions & 0 deletions apps/web/astro-i18next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { URL, fileURLToPath } from 'node:url';

const resourcesBasePath = fileURLToPath(new URL('../../packages/locales', import.meta.url));

// eslint-disable-next-line tsdoc/syntax
/** @type {import('astro-i18next').AstroI18nextConfig} */
export default {
defaultLocale: 'en-US',
locales: ['en-US'],
resourcesBasePath: '../../../packages/locales',
i18nextServer: {
supportedLngs: ['en-US'],
// debug: true,
Expand Down
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"copy-locales": "cp -r ../../packages/locales ./public && rm ./dist/locales/package.json",
"preview": "astro preview",
"astro": "astro",
"lint": "prettier --check . && eslint src --format=pretty",
Expand Down
287 changes: 0 additions & 287 deletions apps/web/public/locales/en-US/translation.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/src/components/MainHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const { title = 'Thoth', description = 'The site for the Thoth Discord bot.' } =
<meta name="darkreader-lock" />
<title>{title}</title>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/assets/logo.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down

0 comments on commit 1e6a7eb

Please sign in to comment.