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 // and the emails' (api/mail/), which the server imports compiled. path: "locales/{locale}", include: ["src", "api/mail"], }, ], format: formatter(), compileNamespace: "es", }; export default config;