Emdash source with visual editor image upload fix
Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
This commit is contained in:
20
lingui.config.ts
Normal file
20
lingui.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { LinguiConfig } from "@lingui/conf";
|
||||
|
||||
import { LOCALE_CODES, SOURCE_LOCALE } from "./packages/admin/src/locales/locales.js";
|
||||
|
||||
const config: LinguiConfig = {
|
||||
sourceLocale: SOURCE_LOCALE.code,
|
||||
locales: LOCALE_CODES,
|
||||
// Compile the "pseudo" locale catalog with garbled characters so unwrapped
|
||||
// strings are immediately visible when EMDASH_PSEUDO_LOCALE=1 is set in dev.
|
||||
pseudoLocale: "pseudo",
|
||||
catalogs: [
|
||||
{
|
||||
path: "<rootDir>/packages/admin/src/locales/{locale}/messages",
|
||||
include: ["<rootDir>/packages/admin/src/**/*.{ts,tsx}"],
|
||||
},
|
||||
],
|
||||
format: "po",
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user