| Age | Commit message (Expand) | Author | Files | Lines |
|---|---|---|---|---|
| 2023-07-16 | Add `--smol` to bunfig | 1 | -0/+12 | |
| 2023-07-16 | Document serialize/deserialize | 1 | -0/+14 |
import { KNOWN_LANGUAGES } from './config.js'; export const KNOWN_LANGUAGE_CODES = Object.values(KNOWN_LANGUAGES); export function getLanguageFromURL(pathname: string) { const langCodeMatch = pathname.match(/\/([a-z]{2}-?[A-Z]{0,2})\//); return langCodeMatch ? langCodeMatch[1] : 'en'; } ppets/array-shift.mjs?h=dylan/github-api-option' type='application/atom+xml'/>