-
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
export function createCslEngineOnce(
dataById: Record<string, any>,
styleXml: string,
localeXml?: string
) {
const sys = {
retrieveItem(id: string) {
return dataById[id];
},
retrieveLocale(lang: string) {
console.log(lang)
if (!lang.startsWith("en")) {
throw new Error(
`This CSL file requires locale "${lang}", but only "en-US" is currently supported.`
);
}
return localeEnUS.replace(/^\uFEFF/, "");
},
};
return new CSL.Engine(sys as any, styleXml, "en-US");
}
This message "can’t access property name, t is undefined" we receive it on an QA and DEV env as soon as createCslEngineOnce is called. But it does not happen locally.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels