Generalize to all conlangs
This commit is contained in:
parent
4a73e9983a
commit
beb9413a90
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user