This commit is contained in:
lingdocs 2022-06-23 16:19:44 -05:00
parent ac88082d4e
commit 7275fbd73c
3 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@lingdocs/pashto-inflector",
"version": "3.0.8",
"version": "3.0.9",
"author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com",

View File

@ -268,7 +268,7 @@ function compileEnglishVP(VP: T.VPRendered): string[] | undefined {
: undefined;
const engAPs = getEngAPs(VP.blocks);
// require all English parts for making the English phrase
const b = (VP.englishBase && engSubj && engObj !== undefined)
return (VP.englishBase && engSubj && engObj !== undefined)
? VP.englishBase.map(e => insertEWords(e, {
// TODO: make sure we actually have the english
subject: getEnglishFromRendered(engSubj) || "",
@ -276,7 +276,6 @@ function compileEnglishVP(VP: T.VPRendered): string[] | undefined {
APs: engAPs,
})).map(capitalizeFirstLetter)
: undefined;
return b;
}
function compileEnglishEP(EP: T.EPRendered): string[] | undefined {

View File

@ -28,6 +28,8 @@ import Hider from "./components/Hider";
import EntrySelect from "./components/EntrySelect";
import VerbInfo, { RootsAndStems } from "./components/verb-info/VerbInfo";
import VPExplorer from "./components/vp-explorer/VPExplorer";
import { vpsReducer } from "./components/vp-explorer/vps-reducer";
import type { VpsReducerAction as VpsA } from "./components/vp-explorer/vps-reducer";
import useStickyState from "./lib/useStickyState";
import Block, { NPBlock, APBlock } from "./components/blocks/Block";
import { roleIcon } from "./components/vp-explorer/VPExplorerExplanationModal";
@ -232,6 +234,7 @@ export {
renderAPSelection,
getEnglishVerb,
roleIcon,
vpsReducer,
// protobuf helpers
readDictionary,
writeDictionary,
@ -272,4 +275,6 @@ export {
genderColors,
// TYPES
Types,
}
}
export type VpsReducerAction = VpsA;