diff --git a/.vscode/settings.json b/.vscode/settings.json index 175ae55..961e10d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,5 +14,5 @@ "i18n-ally.review.gutters": false, "i18n-ally.sortCompare": "locale", "i18n-ally.sortKeys": true, - "i18n-ally.sortLocale": "en" + "i18n-ally.sortLocale": "en", } diff --git a/scripts/generate-i18n-locale-types.ts b/scripts/generate-i18n-locale-types.ts index 10dc95c..e20e9f1 100644 --- a/scripts/generate-i18n-locale-types.ts +++ b/scripts/generate-i18n-locale-types.ts @@ -1,12 +1,11 @@ // npx ts-node --esm file.ts -import { quicktype, InputData, jsonInputForTargetLanguage, TypeScriptTargetLanguage } from "quicktype-core"; +import jsyaml from "js-yaml"; import fs from "node:fs"; import path from "node:path"; import { dirname } from "path"; +import { InputData, TypeScriptTargetLanguage, jsonInputForTargetLanguage, quicktype } from "quicktype-core"; import { fileURLToPath } from "url"; -import jsyaml from "js-yaml"; -import { Console } from "node:console"; const __dirname = dirname(fileURLToPath(import.meta.url)); diff --git a/scripts/yaml-convert.ts b/scripts/yaml-convert.ts index a4a5b00..13b2eea 100644 --- a/scripts/yaml-convert.ts +++ b/scripts/yaml-convert.ts @@ -1,10 +1,10 @@ // npx ts-node --esm file.ts +import yaml from "js-yaml"; import fs from "node:fs"; import path from "node:path"; import { dirname } from "path"; import { fileURLToPath } from "url"; -import yaml from "js-yaml"; const __dirname = dirname(fileURLToPath(import.meta.url)); const folderName = path.resolve(__dirname, "./src/content/categories/"); diff --git a/src/components/astro/blog/AllPostsUrl.astro b/src/components/astro/blog/AllPostsUrl.astro index f420b94..5a63901 100644 --- a/src/components/astro/blog/AllPostsUrl.astro +++ b/src/components/astro/blog/AllPostsUrl.astro @@ -1,17 +1,7 @@ --- -import { getCollection, type CollectionEntry } from "astro:content"; -import { getRoutingLocale, getLocale } from "@i18n/utils"; -import PageLayout from "@layouts/PageLayout.astro"; -import { loadNamespaces, t } from "@i18n/i18n"; -import Section from "@components/astro/global/Section.astro"; -import SmallBlogPostPreview from "@components/astro/blog/SmallBlogPostPreview.astro"; -import BreadCrumbs from "@components/astro/blog/BreadCrumbs.astro"; -import BreadCrumbsItem from "@components/astro/blog/BreadCrumbsItem.astro"; -import { getRelativeLocaleUrl } from "astro:i18n"; -import { getTagByLocale } from "@utils/getTagByLocale"; -import { locales } from "@config/i18n"; -import type { Page } from "astro"; +import { getLocale } from "@i18n/utils"; import { Icon } from "astro-icon/components"; +import { getRelativeLocaleUrl } from "astro:i18n"; interface Props { url: string; @@ -22,7 +12,6 @@ const { url, urlDescription } = Astro.props; // i18next const locale = getLocale(Astro.url); - ---