mirror of
https://github.com/withastro/astro.git
synced 2025-04-14 23:51:49 -05:00
[ci] format
This commit is contained in:
parent
82cd583286
commit
b8645c18fc
3 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue