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 JutEntry = (props: {entry: JutEntryProps}) => {
|
||||||
const {entry} = props;
|
const {entry} = props;
|
||||||
|
|
||||||
return (
|
const langSpecific = (<div>
|
||||||
<div className="searchResult" key={ entry.id }>
|
<span className="synclass">
|
||||||
<b>{ entry.jut }</b> - { entry.eng }
|
{entry.syn_category} { entry.syn_category === "noun" ? `- ${entry.gender}` : null }
|
||||||
<br/>
|
</span>
|
||||||
<span className="synclass">
|
</div>);
|
||||||
{ entry.syn_category === "noun" ? entry.gender : null }
|
|
||||||
</span>
|
return <EntryBase id={entry.id} conlang={Conlang.Juteyuji} conlangEntry={entry.jut} english={entry.eng} langSpecific={langSpecific} />;
|
||||||
</div>);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const ElesuEntry = (props: {entry: ElesuEntryProps}) => {
|
const ElesuEntry = (props: {entry: ElesuEntryProps}) => {
|
||||||
const {entry} = props;
|
const {entry} = props;
|
||||||
|
|
||||||
return (
|
const langSpecific = <div>
|
||||||
<div className="searchResult" key={ entry.id }>
|
<span className="synclass">
|
||||||
<b>{ entry.elesu }</b> - { entry.eng }
|
{ entry.syn_category }
|
||||||
<br/>
|
</span>
|
||||||
<span className="synclass">
|
</div>;
|
||||||
{ entry.syn_category }
|
|
||||||
</span>
|
return <EntryBase id={entry.id} conlang={Conlang.Elesu} conlangEntry={entry.elesu} english={entry.eng} langSpecific={langSpecific} />;
|
||||||
</div>);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const TukEntry = (props: {entry: TukEntryProps}) => {
|
const TukEntry = (props: {entry: TukEntryProps}) => {
|
||||||
const {entry} = props;
|
const {entry} = props;
|
||||||
|
const langSpecific = <div>
|
||||||
|
<span className="synclass">
|
||||||
|
{ entry.syn_category }
|
||||||
|
</span>
|
||||||
|
</div>;
|
||||||
|
|
||||||
return (
|
return <EntryBase id={entry.id} conlang={Conlang.Tukvaysi} conlangEntry={entry.tuk} english={entry.eng} langSpecific={langSpecific} />;
|
||||||
<div className="searchResult" key={ entry.id }>
|
|
||||||
<b>{ entry.tuk }</b> - { entry.eng }
|
|
||||||
<br/>
|
|
||||||
<span className="synclass">
|
|
||||||
{ entry.syn_category }
|
|
||||||
</span>
|
|
||||||
</div>);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export {SaiEntry, ElesuEntry, JutEntry, TukEntry};
|
export {SaiEntry, ElesuEntry, JutEntry, TukEntry};
|
||||||
|
Loading…
Reference in New Issue
Block a user