From ad41e1c800bcd1133fbe423cdcaf22d083a0a0f2 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 10 Jun 2024 10:15:55 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/errors/errors-data.ts | 9 +++++---- packages/astro/src/i18n/index.ts | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index ccbc209334..a819e2beaa 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -1200,13 +1200,14 @@ export const i18nNotEnabled = { * @docs * @description * An i18n utility tried to use the locale from a URL path that does not contain one. You can prevent this error by using pathHasLocale to check URLs for a `locale` first before using i18n utilities. - * + * */ export const i18nNoLocaleFoundInPath = { name: 'i18nNoLocaleFoundInPath', - title: 'The path doesn\'t contain any locale', - message: 'You tried to use an i18n utility on a path that doesn\'t contain any locale. You can use \`pathHasLocale\` first to determine if the path has a locale.', -} satisfies ErrorData; + title: "The path doesn't contain any locale", + message: + "You tried to use an i18n utility on a path that doesn't contain any locale. You can use `pathHasLocale` first to determine if the path has a locale.", +} satisfies ErrorData; /** * @docs diff --git a/packages/astro/src/i18n/index.ts b/packages/astro/src/i18n/index.ts index 5e6976d25a..5af618be0d 100644 --- a/packages/astro/src/i18n/index.ts +++ b/packages/astro/src/i18n/index.ts @@ -8,7 +8,7 @@ import type { } from '../@types/astro.js'; import { shouldAppendForwardSlash } from '../core/build/util.js'; import { REROUTE_DIRECTIVE_HEADER } from '../core/constants.js'; -import {i18nNoLocaleFoundInPath, MissingLocale} from '../core/errors/errors-data.js'; +import { MissingLocale, i18nNoLocaleFoundInPath } from '../core/errors/errors-data.js'; import { AstroError } from '../core/errors/index.js'; import { createI18nMiddleware } from './middleware.js'; import type { RoutingStrategies } from './utils.js';