import { formatter } from "@lingui/format-po"; import type { LinguiConfig } from "@lingui/conf"; import { LOCALES, SOURCE_LOCALE } from "./shared/locale.ts"; const config: LinguiConfig = { locales: [...LOCALES], sourceLocale: SOURCE_LOCALE, catalogs: [ { // One catalog per language for the whole app: the interface's messages, // the emails' (api/mail/), which the server imports compiled, and those // both say (shared/digest-messages.ts). Every message's English is in // the code, so extract --overwrite writes en.po from it. path: "locales/{locale}", include: ["src", "api/mail", "shared"], }, ], format: formatter(), compileNamespace: "es", }; export default config;