Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import {
defineCodes,
SuaveplanError,
type SuaveplanErrorOptions,
} from "@suaveplan/error";
/**
* Error code registry for `@suaveplan/locale-data`.
*/
export const LOCALE_DATA_CODES = defineCodes("LOCALE_DATA", [
"COUNTRY.NOT_FOUND",
"LANGUAGE.NOT_FOUND",
] as const);
export type LocaleDataCode =
(typeof LOCALE_DATA_CODES)[keyof typeof LOCALE_DATA_CODES];
/** Typed error for `@suaveplan/locale-data`. */
export class LocaleDataError extends SuaveplanError<LocaleDataCode> {
// biome-ignore lint/complexity/noUselessConstructor: widens visibility
public constructor(
code: LocaleDataCode,
message: string,
options?: SuaveplanErrorOptions
) {
super(code, message, options);
}
}