Skip to content

Commit 2a85bd7

Browse files
ematipicoastrobot-houston
authored andcommitted
[ci] format
1 parent 0fa5c82 commit 2a85bd7

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/astro/src/i18n/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { shouldAppendForwardSlash } from '../core/build/util.js';
44
import { REROUTE_DIRECTIVE_HEADER } from '../core/constants.js';
55
import { MissingLocale, i18nNoLocaleFoundInPath } from '../core/errors/errors-data.js';
66
import { AstroError } from '../core/errors/index.js';
7-
import { isRoute404, isRoute500 } from '../core/routing/match.js';
87
import type { AstroConfig, Locales, ValidRedirectStatus } from '../types/public/config.js';
98
import type { APIContext } from '../types/public/context.js';
109
import { createI18nMiddleware } from './middleware.js';

packages/astro/src/i18n/middleware.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { SSRManifest, SSRManifestI18n } from '../core/app/types.js';
22
import { REROUTE_DIRECTIVE_HEADER, ROUTE_TYPE_HEADER } from '../core/constants.js';
3+
import { isRequestServerIsland, requestIs404Or500 } from '../core/routing/match.js';
34
import type { MiddlewareHandler } from '../types/public/common.js';
45
import type { APIContext } from '../types/public/context.js';
56
import {
@@ -10,7 +11,6 @@ import {
1011
redirectToFallback,
1112
requestHasLocale,
1213
} from './index.js';
13-
import { isRequestServerIsland, requestIs404Or500 } from '../core/routing/match.js';
1414

1515
export function createI18nMiddleware(
1616
i18n: SSRManifest['i18n'],

packages/astro/test/i18n-routing.test.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -2169,8 +2169,7 @@ describe('Fallback rewrite SSR', () => {
21692169
});
21702170
});
21712171

2172-
2173-
describe("i18n routing with server islands", () => {
2172+
describe('i18n routing with server islands', () => {
21742173
/** @type {import('./test-utils').Fixture} */
21752174
let fixture;
21762175
/** @type {import('./test-utils').DevServer} */
@@ -2182,10 +2181,10 @@ describe("i18n routing with server islands", () => {
21822181
});
21832182
devServer = await fixture.startDevServer();
21842183
});
2185-
2184+
21862185
after(async () => {
21872186
await devServer.stop();
2188-
})
2187+
});
21892188

21902189
it('should render the en locale with server island', async () => {
21912190
const res = await fixture.fetch('/en/island');
@@ -2194,4 +2193,4 @@ describe("i18n routing with server islands", () => {
21942193
const serverIslandScript = $('script[data-island-id]');
21952194
assert.equal(serverIslandScript.length, 1, 'has the island script');
21962195
});
2197-
})
2196+
});

0 commit comments

Comments
 (0)