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