diff options
author | 2025-03-31 13:07:11 +0000 | |
---|---|---|
committer | 2025-03-31 13:07:11 +0000 | |
commit | b8645c18fcbc903d494c42b70d54ce66852810bc (patch) | |
tree | 842c4c87ff7810e5f174e1123ebf67d4a81bfedb | |
parent | 82cd5832860d70ea7524473ae927db0cc2682b12 (diff) | |
download | astro-b8645c18fcbc903d494c42b70d54ce66852810bc.tar.gz astro-b8645c18fcbc903d494c42b70d54ce66852810bc.tar.zst astro-b8645c18fcbc903d494c42b70d54ce66852810bc.zip |
[ci] format
-rw-r--r-- | packages/astro/src/i18n/index.ts | 3 | ||||
-rw-r--r-- | packages/astro/src/i18n/utils.ts | 2 | ||||
-rw-r--r-- | packages/astro/test/i18n-routing.test.js | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/packages/astro/src/i18n/index.ts b/packages/astro/src/i18n/index.ts index 10d451b22..ee1962b34 100644 --- a/packages/astro/src/i18n/index.ts +++ b/packages/astro/src/i18n/index.ts @@ -238,7 +238,7 @@ export function getAllCodes(locales: Locales): string[] { result.push(...loopLocale.codes); } } - return result + return result; } export function toCodes(locales: Locales): string[] { @@ -251,7 +251,6 @@ export function toCodes(locales: Locales): string[] { }); } - /** * It returns the array of paths * @param locales diff --git a/packages/astro/src/i18n/utils.ts b/packages/astro/src/i18n/utils.ts index ed8ec147d..4fe2ddc9d 100644 --- a/packages/astro/src/i18n/utils.ts +++ b/packages/astro/src/i18n/utils.ts @@ -1,6 +1,6 @@ import type { SSRManifest } from '../core/app/types.js'; import type { AstroConfig, Locales } from '../types/public/config.js'; -import { normalizeTheLocale, getAllCodes } from './index.js'; +import { getAllCodes, normalizeTheLocale } from './index.js'; type BrowserLocale = { locale: string; diff --git a/packages/astro/test/i18n-routing.test.js b/packages/astro/test/i18n-routing.test.js index a0a2eccfb..9f8b5a4c0 100644 --- a/packages/astro/test/i18n-routing.test.js +++ b/packages/astro/test/i18n-routing.test.js @@ -1701,7 +1701,6 @@ describe('[SSR] i18n routing', () => { assert.equal(text.includes('Locale list: en, pt, it'), true); }); - it('should render the preferred locale when a locale is configured with codes', async () => { let request = new Request('http://example.com/preferred-locale', { headers: { |