Generalize to all conlangs

This commit is contained in:
Greg Shuflin 2021-09-15 01:36:12 -07:00
parent 4a73e9983a
commit beb9413a90

View File

@ -113,40 +113,36 @@ function formatMorphology(entry) {
const JutEntry = (props: {entry: JutEntryProps}) => {
const {entry} = props;
return (
<div className="searchResult" key={ entry.id }>
<b>{ entry.jut }</b> - { entry.eng }
<br/>
const langSpecific = (<div>
<span className="synclass">
{ entry.syn_category === "noun" ? entry.gender : null }
{entry.syn_category} { entry.syn_category === "noun" ? `- ${entry.gender}` : null }
</span>
</div>);
return <EntryBase id={entry.id} conlang={Conlang.Juteyuji} conlangEntry={entry.jut} english={entry.eng} langSpecific={langSpecific} />;
};
const ElesuEntry = (props: {entry: ElesuEntryProps}) => {
const {entry} = props;
return (
<div className="searchResult" key={ entry.id }>
<b>{ entry.elesu }</b> - { entry.eng }
<br/>
const langSpecific = <div>
<span className="synclass">
{ entry.syn_category }
</span>
</div>);
</div>;
return <EntryBase id={entry.id} conlang={Conlang.Elesu} conlangEntry={entry.elesu} english={entry.eng} langSpecific={langSpecific} />;
};
const TukEntry = (props: {entry: TukEntryProps}) => {
const {entry} = props;
return (
<div className="searchResult" key={ entry.id }>
<b>{ entry.tuk }</b> - { entry.eng }
<br/>
const langSpecific = <div>
<span className="synclass">
{ entry.syn_category }
</span>
</div>);
</div>;
return <EntryBase id={entry.id} conlang={Conlang.Tukvaysi} conlangEntry={entry.tuk} english={entry.eng} langSpecific={langSpecific} />;
};
export {SaiEntry, ElesuEntry, JutEntry, TukEntry};