mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-17 13:43:29 +09:00
i18nUtils renamed with languageParser
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
---
|
||||
import { slugSelector } from "@/lib/languageParser.astro";
|
||||
import { getLangFromUrl } from "@/lib/utils/i18nUtils";
|
||||
import { getLangFromUrl, slugSelector } from "@/lib/utils/languageParser";
|
||||
import { plainify } from "@/lib/utils/textConverter";
|
||||
import ImageMod from "./ImageMod.astro";
|
||||
import Social from "./Social.astro";
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
---
|
||||
import config from "@/config/config.json";
|
||||
import { slugSelector } from "@/lib/languageParser.astro";
|
||||
import dateFormat from "@/lib/utils/dateFormat";
|
||||
import { getLangFromUrl, getTranslations } from "@/lib/utils/i18nUtils";
|
||||
import {
|
||||
getLangFromUrl,
|
||||
getTranslations,
|
||||
slugSelector,
|
||||
} from "@/lib/utils/languageParser";
|
||||
import { humanize, plainify, slugify } from "@/lib/utils/textConverter";
|
||||
import type { ContentEntryMap } from "astro:content";
|
||||
import { FaRegFolder, FaRegUserCircle } from "react-icons/fa";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { supportedLang } from "@/lib/utils/i18nUtils";
|
||||
import { supportedLang } from "@/lib/utils/languageParser";
|
||||
import { humanize } from "@/lib/utils/textConverter";
|
||||
|
||||
const { className }: { className?: string } = Astro.props;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
import config from "@/config/config.json";
|
||||
import { slugSelector } from "@/lib/languageParser.astro";
|
||||
import { getLangFromUrl } from "@/lib/utils/i18nUtils";
|
||||
import ImageMod from "./ImageMod.astro";
|
||||
import { getLangFromUrl, slugSelector } from "@/lib/utils/languageParser";
|
||||
|
||||
const { src, srcDarkmode }: { src?: string; srcDarkmode?: string } =
|
||||
Astro.props;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
import { slugSelector } from "@/lib/languageParser.astro";
|
||||
import { getLangFromUrl } from "@/lib/utils/i18nUtils";
|
||||
import { getLangFromUrl, slugSelector } from "@/lib/utils/languageParser";
|
||||
|
||||
const lang = getLangFromUrl(Astro.url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user