23 lines
721 B
TypeScript
23 lines
721 B
TypeScript
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. A
|
|
// message named by id has its English in en.po only, which is why
|
|
// extract runs without --overwrite (it would write the id there).
|
|
path: "locales/{locale}",
|
|
include: ["src", "api/mail"],
|
|
},
|
|
],
|
|
format: formatter(),
|
|
compileNamespace: "es",
|
|
};
|
|
|
|
export default config;
|