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MAAME,CAAC,EACzC,MAAO,IAAID,CAAM,GAAGE,IAAS,IAAM,GAAKA,CAAI,GAAGC,CAAI,EACpD","names":["LOCALES","DEFAULT_LOCALE","LOCALE_COOKIE","LOCALE_INFO","isLocale","value","splitLocalePath","pathname","m","localizePath","path","locale","i","base","rest"],"sources":["../../../../../../src/lib/i18n/locales.ts"],"sourcesContent":["/**\n * The site's languages (RAT-573, Hungarian since RAT-587). English lives at the\n * root and is the default; the others under a two-letter prefix (/de, /es, /it,\n * /fr, /pt, /hu). Only pages whose content we write ourselves get a prefixed,\n * indexable copy (see localized-paths.ts); everything else keeps one URL and\n * takes its language from a cookie that only the visitor's own choice sets.\n */\nexport const LOCALES = ['en', 'de', 'es', 'it', 'fr', 'pt', 'hu'] as const;\nexport type Locale = (typeof LOCALES)[number];\n\nexport const DEFAULT_LOCALE: Locale = 'en';\n\n/** The visitor's chosen language. Readable by the page: the picker sets it. */\nexport const LOCALE_COOKIE = 'rmd_lang';\n\nexport const LOCALE_INFO: Record<\n\tLocale,\n\t{ name: string; english: string; hreflang: string; ogLocale: string }\n> = {\n\ten: { name: 'English', english: 'English', hreflang: 'en', ogLocale: 'en_US' },\n\tde: { name: 'Deutsch', english: 'German', hreflang: 'de', ogLocale: 'de_DE' },\n\tes: { name: 'Español', english: 'Spanish', hreflang: 'es', ogLocale: 'es_ES' },\n\tit: { name: 'Italiano', english: 'Italian', hreflang: 'it', ogLocale: 'it_IT' },\n\tfr: { name: 'Français', english: 'French', hreflang: 'fr', ogLocale: 'fr_FR' },\n\tpt: { name: 'Português', english: 'Portuguese', hreflang: 'pt-BR', ogLocale: 'pt_BR' },\n\thu: { name: 'Magyar', english: 'Hungarian', hreflang: 'hu', ogLocale: 'hu_HU' }\n};\n\nexport function isLocale(value: unknown): value is Locale {\n\treturn typeof value === 'string' && (LOCALES as readonly string[]).includes(value);\n}\n\n/** `/de/games/tod` → { locale: 'de', path: '/games/tod' }; no prefix → locale null. */\nexport function splitLocalePath(pathname: string): { locale: Locale | null; path: string } {\n\tconst m = /^\\/([a-z]{2})(?=\\/|$)(.*)$/.exec(pathname);\n\tif (m && m[1] !== DEFAULT_LOCALE && isLocale(m[1])) {\n\t\treturn { locale: m[1], path: m[2] || '/' };\n\t}\n\treturn { locale: null, path: pathname };\n}\n\n/** The address of `path` in `locale`. Query and hash are kept. */\nexport function localizePath(path: string, locale: Locale): string {\n\tif (locale === DEFAULT_LOCALE) return path;\n\tconst i = path.search(/[?#]/);\n\tconst base = i === -1 ? path : path.slice(0, i);\n\tconst rest = i === -1 ? '' : path.slice(i);\n\treturn `/${locale}${base === '/' ? '' : base}${rest}`;\n}\n"],"version":3}