diff --git a/demo/src/components/TermLinks.tsx b/demo/src/components/TermLinks.tsx
index cec1e0d..314b5df 100644
--- a/demo/src/components/TermLinks.tsx
+++ b/demo/src/components/TermLinks.tsx
@@ -1,5 +1,5 @@
import type { TTermLinks } from 'dev-dict'
-import { ExternalLink, Globe } from 'lucide-react'
+import { ExternalLink } from 'lucide-react'
import { Fragment } from 'react'
interface TermLinksProps {
@@ -10,7 +10,7 @@ interface TermLinksProps {
}
const linkData = [
- { key: 'official_website' as const, label: 'Official Website', icon: Globe },
+ { key: 'official_website' as const, label: 'Official Website', icon: ExternalLink },
{ key: 'wikipedia' as const, label: 'Wikipedia', icon: ExternalLink },
{ key: 'github' as const, label: 'GitHub', icon: ExternalLink },
{ key: 'npm' as const, label: 'npm', icon: ExternalLink },
@@ -34,8 +34,8 @@ export function TermLinks({ links, variant = 'button', onLinkClick, showEmpty =
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm text-slate-600 hover:text-blue-600 bg-slate-50 hover:bg-blue-50 rounded-lg border border-slate-200 hover:border-blue-200 transition-colors"
>
-
{label}
+
))}
@@ -57,8 +57,8 @@ export function TermLinks({ links, variant = 'button', onLinkClick, showEmpty =
}}
className="inline-flex items-center gap-1 hover:text-blue-500 transition-colors cursor-pointer bg-transparent border-0 p-0 font-inherit"
>
-
{label}
+
))}
diff --git a/demo/src/pages/TermPage.tsx b/demo/src/pages/TermPage.tsx
index 988a95e..a3cd762 100644
--- a/demo/src/pages/TermPage.tsx
+++ b/demo/src/pages/TermPage.tsx
@@ -195,11 +195,11 @@ export function TermPage({ termId, fromQuery }: TermPageProps) {
- {term.sources && (term.sources.label?.length || term.sources.definition?.length) && (
+ {term.sources && (term.sources.label?.length || term.sources.definition?.length) ? (
diff --git a/demo/src/shared/constants.ts b/demo/src/shared/constants.ts
index ce96e74..95c5d08 100644
--- a/demo/src/shared/constants.ts
+++ b/demo/src/shared/constants.ts
@@ -9,7 +9,7 @@ export const LANGUAGES = [
export const FILTER_OPTIONS = [
{ id: 'all', label: 'All terms' },
{ id: 'baseline_incomplete', label: 'Needs work' },
- { id: 'baseline_complete', label: 'Ready' },
+ // { id: 'baseline_complete', label: 'Ready' },
{ id: 'fully_complete', label: 'Fully translated' },
]
diff --git a/src/data/terms/golang.ts b/src/data/terms/golang.ts
index f55bed0..da8a5f6 100644
--- a/src/data/terms/golang.ts
+++ b/src/data/terms/golang.ts
@@ -9,17 +9,39 @@ export default {
name: {
[LOCALES.EN_US]: `Go`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: LOCALES.EN_US,
+ },
+
+ altName: {
+ [LOCALES.EN_US]: `Golang`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: LOCALES.EN_US,
},
label: {
- [LOCALES.EN_US]: ``,
+ [LOCALES.EN_US]: `High-Level Programming Language`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: `Hochsprache`,
},
definition: {
- [LOCALES.EN_US]: ``,
+ [LOCALES.EN_US]: `Go, also known as Golang, is a statically typed, compiled programming language designed at Google. It emphasizes simplicity, concurrency, and performance, making it ideal for building scalable and efficient software applications.`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: `Go, auch bekannt als Golang, ist eine statisch typisierte, kompilierte Programmiersprache, die bei Google entwickelt wurde. Sie legt Wert auf Einfachheit, Nebenläufigkeit und Leistung, was sie ideal für den Aufbau skalierbarer und effizienter Softwareanwendungen macht.`,
},
type: [TYPES.language],
- tags: [],
+ tags: [TAGS.backend, TAGS.open_source],
+
+ links: {
+ official_website: `https://go.dev/`,
+ wikipedia: `https://en.wikipedia.org/wiki/Go_(programming_language)`,
+ },
+
+ sources: {
+ label: [SOURCES.ai_generated],
+ definition: [SOURCES.ai_generated],
+ },
} as const satisfies TTerm
diff --git a/src/data/terms/javascript.ts b/src/data/terms/javascript.ts
index 94d0691..be44fc1 100644
--- a/src/data/terms/javascript.ts
+++ b/src/data/terms/javascript.ts
@@ -9,15 +9,20 @@ export default {
name: {
[LOCALES.EN_US]: `JavaScript`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: LOCALES.EN_US,
},
label: {
[LOCALES.EN_US]: `High-Level Programming Language`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
[LOCALES.DE_DE]: `Hochsprache`,
},
definition: {
- [LOCALES.EN_US]: ``,
+ [LOCALES.EN_US]: `JavaScript is a high-level, dynamically typed programming language and one of the three core technologies of the Web alongside HTML and CSS. Created by Brendan Eich in 1995, it runs in browsers for client-side scripting and on servers via runtimes like Node.js.`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: `JavaScript ist eine hochsprachige, dynamisch typisierte Programmiersprache und eine der drei Kerntechnologien des Webs neben HTML und CSS. Sie wurde 1995 von Brendan Eich entwickelt und läuft in Browsern für clientseitiges Scripting sowie auf Servern über Laufzeitumgebungen wie Node.js.`,
},
type: [TYPES.language],
@@ -28,4 +33,9 @@ export default {
official_website: 'https://tc39.es/ecma262',
wikipedia: `https://en.wikipedia.org/wiki/JavaScript`,
},
+
+ sources: {
+ label: [SOURCES.ai_generated],
+ definition: [SOURCES.ai_generated],
+ },
} as const satisfies TTerm
diff --git a/src/data/terms/postgres.ts b/src/data/terms/postgres.ts
index 94d756b..aa9416b 100644
--- a/src/data/terms/postgres.ts
+++ b/src/data/terms/postgres.ts
@@ -9,17 +9,39 @@ export default {
name: {
[LOCALES.EN_US]: `PostgreSQL`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: LOCALES.EN_US,
+ },
+
+ altName: {
+ [LOCALES.EN_US]: `Postgres`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: LOCALES.EN_US,
},
label: {
- [LOCALES.EN_US]: ``,
+ [LOCALES.EN_US]: `Relational Database Management System`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: `Relationales Datenbankverwaltungssystem`,
},
definition: {
- [LOCALES.EN_US]: ``,
+ [LOCALES.EN_US]: `PostgreSQL, often referred to as Postgres, is a powerful, open-source relational database management system (RDBMS) that emphasizes extensibility and SQL compliance. It supports advanced data types, complex queries, and a wide range of programming languages, making it a popular choice for developers and enterprises worldwide.`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: `PostgreSQL, oft als Postgres bezeichnet, ist ein leistungsstarkes, Open-Source relationales Datenbankverwaltungssystem (RDBMS), das Wert auf Erweiterbarkeit und SQL-Konformität legt. Es unterstützt erweiterte Datentypen, komplexe Abfragen und eine breite Palette von Programmiersprachen, was es zu einer beliebten Wahl für Entwickler und Unternehmen weltweit macht.`,
},
- type: [],
+ type: [TYPES.database],
+
+ tags: [TAGS.backend, TAGS.open_source],
- tags: [],
+ links: {
+ official_website: `https://www.postgresql.org/`,
+ wikipedia: `https://en.wikipedia.org/wiki/PostgreSQL`,
+ },
+
+ sources: {
+ label: [SOURCES.ai_generated],
+ definition: [SOURCES.ai_generated],
+ },
} as const satisfies TTerm
diff --git a/src/data/types/cms.ts b/src/data/types/cms.ts
index d8d2b2b..e8359a7 100644
--- a/src/data/types/cms.ts
+++ b/src/data/types/cms.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `cms`,
diff --git a/src/data/types/concept.ts b/src/data/types/concept.ts
index 14a7a63..d9d8de2 100644
--- a/src/data/types/concept.ts
+++ b/src/data/types/concept.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `concept`,
diff --git a/src/data/types/database.ts b/src/data/types/database.ts
new file mode 100644
index 0000000..cce8e83
--- /dev/null
+++ b/src/data/types/database.ts
@@ -0,0 +1,12 @@
+import type { TTermType } from '@/types'
+import { LOCALES } from '@/data/locales'
+
+export default {
+ id: `database`,
+
+ name: {
+ [LOCALES.EN_US]: `Database`,
+ [LOCALES.EN_GB]: LOCALES.EN_US,
+ [LOCALES.DE_DE]: `Datenbank`,
+ },
+} as const satisfies TTermType
diff --git a/src/data/types/framework.ts b/src/data/types/framework.ts
index 4334a0d..b8cae8a 100644
--- a/src/data/types/framework.ts
+++ b/src/data/types/framework.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `framework`,
diff --git a/src/data/types/index.ts b/src/data/types/index.ts
index 8c715cd..669994b 100644
--- a/src/data/types/index.ts
+++ b/src/data/types/index.ts
@@ -2,6 +2,7 @@ import { interpolateValues } from '@/utils'
import cms from './cms'
import concept from './concept'
+import database from './database'
import framework from './framework'
import language from './language'
import library from './library'
@@ -13,12 +14,13 @@ import standard from './standard'
export const RAW_TYPES = {
[cms.id]: cms,
[concept.id]: concept,
+ [database.id]: database,
[framework.id]: framework,
[language.id]: language,
[library.id]: library,
[methodology.id]: methodology,
- [runtime_environment.id]: runtime_environment,
[platform.id]: platform,
+ [runtime_environment.id]: runtime_environment,
[standard.id]: standard,
} as const
diff --git a/src/data/types/language.ts b/src/data/types/language.ts
index d111c7f..b26cc72 100644
--- a/src/data/types/language.ts
+++ b/src/data/types/language.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `language`,
diff --git a/src/data/types/library.ts b/src/data/types/library.ts
index 563d01c..0520443 100644
--- a/src/data/types/library.ts
+++ b/src/data/types/library.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `library`,
diff --git a/src/data/types/methodology.ts b/src/data/types/methodology.ts
index bfc24b3..952036b 100644
--- a/src/data/types/methodology.ts
+++ b/src/data/types/methodology.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `methodology`,
diff --git a/src/data/types/platform.ts b/src/data/types/platform.ts
index 20458f9..394487a 100644
--- a/src/data/types/platform.ts
+++ b/src/data/types/platform.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `platform`,
diff --git a/src/data/types/runtime_environment.ts b/src/data/types/runtime_environment.ts
index f6ff080..1b0e868 100644
--- a/src/data/types/runtime_environment.ts
+++ b/src/data/types/runtime_environment.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `runtime_environment`,
diff --git a/src/data/types/standard.ts b/src/data/types/standard.ts
index 4420e4f..da577b9 100644
--- a/src/data/types/standard.ts
+++ b/src/data/types/standard.ts
@@ -1,8 +1,5 @@
import type { TTermType } from '@/types'
import { LOCALES } from '@/data/locales'
-import { SOURCES } from '@/data/sources'
-import { TAGS } from '@/data/tags'
-import { TYPES } from '@/data/types'
export default {
id: `standard`,
diff --git a/src/types-entry.ts b/src/types-entry.ts
index 039d3b3..e0412be 100644
--- a/src/types-entry.ts
+++ b/src/types-entry.ts
@@ -1,5 +1,6 @@
export { default as cms } from '@/data/types/cms'
export { default as concept } from '@/data/types/concept'
+export { default as database } from '@/data/types/database'
export { default as framework } from '@/data/types/framework'
export { default as language } from '@/data/types/language'
export { default as library } from '@/data/types/library'