chore: use new imports

This commit is contained in:
Bryan Galdámez 2025-06-07 09:29:41 -06:00
parent 0b09c5b14e
commit e49e4dbbf1
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -3,8 +3,8 @@ import { icon, library } from '@fortawesome/fontawesome-svg-core'
import { faSort, faSortDown, faSortUp } from '@fortawesome/free-solid-svg-icons'
import Xmark from '~/icons/XmarkIcon.astro'
import { type ZenTheme } from '~/mods'
import { type Locale } from '~/types/i18n'
import { getPath } from '~/utils/i18n'
import { type Locale } from '~/constants/i18n'
// Add icons to the library
library.add(faSort, faSortUp, faSortDown)

View file

@ -1,4 +1,4 @@
import { type Locale } from '~/constants/i18n'
import { type Locale } from '~/types/i18n'
import { getUI } from '~/utils/i18n'
/**

View file

@ -7,12 +7,13 @@ import InfoIcon from '~/icons/InfoIcon.astro'
import Layout from '~/layouts/Layout.astro'
import { getAllMods, getAuthorLink, getLocalizedDate } from '~/mods'
import { getPath, getUI } from '~/utils/i18n'
import { getLocale, getOtherLocales } from '~/utils/i18n'
import { getLocale, otherLocales } from '~/utils/i18n'
export async function getStaticPaths() {
const mods = await getAllMods()
return mods.flatMap(mod => [
...getOtherLocales().map(locale => ({
...otherLocales.map(locale => ({
params: {
slug: mod.id,
locale: locale,