mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore: use new imports
This commit is contained in:
parent
0b09c5b14e
commit
e49e4dbbf1
3 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { type Locale } from '~/constants/i18n'
|
||||
import { type Locale } from '~/types/i18n'
|
||||
import { getUI } from '~/utils/i18n'
|
||||
|
||||
/**
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue