Home / Type/ NormalizeLocales Type — astro Architecture

NormalizeLocales Type — astro Architecture

Architecture documentation for the NormalizeLocales type/interface in config.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6db0a836_da46_f243_2e66_442b5385795c["NormalizeLocales"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d["config.ts"]
  6db0a836_da46_f243_2e66_442b5385795c -->|defined in| 9a410621_7e4c_298f_fae4_ea2f60c8b25d
  style 6db0a836_da46_f243_2e66_442b5385795c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/types/public/config.ts lines 42–48

type NormalizeLocales<T extends Locales> = {
	[K in keyof T]: T[K] extends string
		? T[K]
		: T[K] extends { codes: Array<string> }
			? T[K]['codes'][number]
			: never;
}[number];

Frequently Asked Questions

What is the NormalizeLocales type?
NormalizeLocales is a type/interface in the astro codebase, defined in packages/astro/src/types/public/config.ts.
Where is NormalizeLocales defined?
NormalizeLocales is defined in packages/astro/src/types/public/config.ts at line 42.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free