This commit is contained in:
Przemek Wiech
2019-11-23 23:39:52 +01:00
parent d30e28e22f
commit 7354cabd29
2 changed files with 7 additions and 2 deletions

View File

@@ -12,8 +12,8 @@ interface Props {
indi: string;
}
const EVENT_TAGS = ['BIRT', 'BAPM', 'CHR', 'DEAT', 'BURI'];
const EXCLUDED_TAGS = ['NAME', 'SEX', 'FAMC', 'FAMS', 'NOTE'];
const EVENT_TAGS = ['BIRT', 'BAPM', 'CHR', 'DEAT', 'BURI', 'EVEN'];
const EXCLUDED_TAGS = ['NAME', 'SEX', 'FAMC', 'FAMS', 'NOTE', 'SOUR'];
const TAG_DESCRIPTIONS = new Map([
['BAPM', 'Baptism'],
['BIRT', 'Birth'],
@@ -21,6 +21,7 @@ const TAG_DESCRIPTIONS = new Map([
['CHR', 'Christening'],
['DEAT', 'Death'],
['EMAIL', 'E-mail'],
['EVEN', 'Event'],
['OCCU', 'Occupation'],
['TITL', 'Title'],
['WWW', 'WWW'],
@@ -67,6 +68,9 @@ function getData(entry: GedcomEntry) {
function eventDetails(entry: GedcomEntry, intl: InjectedIntl) {
const lines = [];
if (entry.data && entry.data.length > 1) {
lines.push(<i>{entry.data}</i>);
}
const date = entry.tree.find((subentry) => subentry.tag === 'DATE');
if (date && date.data) {
lines.push(translateDate(date.data, intl));

View File

@@ -31,6 +31,7 @@
"gedcom.CHR": "Chrzest",
"gedcom.DEAT": "Śmierć",
"gedcom.EMAIL": "E-mail",
"gedcom.EVEN": "Wydarzenie",
"gedcom.OCCU": "Zawód",
"gedcom.TITL": "Tytuł",
"gedcom.WWW": "Strona WWW",