Skip to content

Commit b8645c1

Browse files
ematipicoastrobot-houston
authored andcommitted
[ci] format
1 parent 82cd583 commit b8645c1

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

packages/astro/src/i18n/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export function getAllCodes(locales: Locales): string[] {
238238
result.push(...loopLocale.codes);
239239
}
240240
}
241-
return result
241+
return result;
242242
}
243243

244244
export function toCodes(locales: Locales): string[] {
@@ -251,7 +251,6 @@ export function toCodes(locales: Locales): string[] {
251251
});
252252
}
253253

254-
255254
/**
256255
* It returns the array of paths
257256
* @param locales

packages/astro/src/i18n/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { SSRManifest } from '../core/app/types.js';
22
import type { AstroConfig, Locales } from '../types/public/config.js';
3-
import { normalizeTheLocale, getAllCodes } from './index.js';
3+
import { getAllCodes, normalizeTheLocale } from './index.js';
44

55
type BrowserLocale = {
66
locale: string;

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

-1
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,6 @@ describe('[SSR] i18n routing', () => {
17011701
assert.equal(text.includes('Locale list: en, pt, it'), true);
17021702
});
17031703

1704-
17051704
it('should render the preferred locale when a locale is configured with codes', async () => {
17061705
let request = new Request('http://example.com/preferred-locale', {
17071706
headers: {

0 commit comments

Comments
 (0)