Skip to content

Commit

Permalink
fix path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothée Rebours committed Feb 29, 2024
1 parent 8e357ad commit 578a439
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/i18n/LanguagePicker.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const t = useTranslations(currentLang)
</label>
</form>
<script>
import { languages } from '~/i18n'
import { languages } from '~/i18n/index.ts'
import { navigate } from 'astro:transitions/client'

const switchLang = (path: string, lang: string): string => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[lang]/about-me.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Layout from '~/layouts/Layout.astro'
import { Icon } from 'astro-icon/components'
import { Picture } from 'astro:assets'
import { languages } from '~/i18n'
import { languages } from '~/i18n/index.ts'
import { useTranslations, validateLang } from '~/i18n/utils'
import Trans from '~/components/i18n/Trans.astro'
import ariaPicture from '~/resources/PXL_20230106_141516359.PORTRAIT.jpg'
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[lang]/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useFormatDate, formatDateAbsolute, useTranslatedPath, useTranslations,
import { Picture } from 'astro:assets'
import Layout from '~/layouts/Layout.astro'
import { getCollection } from 'astro:content'
import { slugify } from '~/utils'
import { languages } from '~/i18n'
import { slugify }import { slugify } from '~/utils/index.ts'
import { languages } from '~/i18n/index.ts'
import { convertMDXToHTML } from '~/utils/mdxToHtml'
import portrait from '~/resources/portrait-blog.png?arraybuffer'
import MetaOGImage from '~/components/MetaOGImage.astro'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[lang]/encrypted-card-dummy.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { languages } from '~/i18n'
import { languages } from '~/i18n/index.ts'
import EncryptedBusinessCard from '~/components/EncryptedItems/EncryptedBusinessCard.client.vue'
import BaseLayout from '~/layouts/BaseLayout.astro'
import { validateLang } from '~/i18n/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[lang]/encrypted-card.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { languages } from '~/i18n'
import { languages } from '~/i18n/index.ts'
import EncryptedBusinessCard from '~/components/EncryptedItems/EncryptedBusinessCard.client.vue'
import BaseLayout from '~/layouts/BaseLayout.astro'
import { validateLang } from '~/i18n/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[lang]/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { languages } from '~/i18n'
import { languages } from '~/i18n/index.ts'
import { Picture } from 'astro:assets'
import Layout from '~/layouts/Layout.astro'
import Trans from '~/components/i18n/Trans.astro'
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[lang]/rss.xml.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import rss from '@astrojs/rss'
import type { APIRoute } from 'astro'
import { languages } from '~/i18n'
import { languages } from '~/i18n/index.ts'
import { useTranslations, validateLang } from '~/i18n/utils.ts'
import { getCollection } from 'astro:content'
import { slugify } from '~/utils'
import { slugify } from '~/utils/index.ts'
import { getAbsoluteLocaleUrl } from 'astro:i18n'
import sanitizeHtml from 'sanitize-html'
import { convertMDXToHTML } from '~/utils/mdxToHtml.ts'
Expand Down

0 comments on commit 578a439

Please sign in to comment.