@optolith/database-schema 0.47.3 → 0.47.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/gen/types.d.ts +19 -0
- package/lib/types/Culture.d.ts +4 -0
- package/lib/types/Culture.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.47.4](https://github.com/Optolith/database-schema/compare/v0.47.3...v0.47.4) (2026-06-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* culture language translations ([b5ece95](https://github.com/Optolith/database-schema/commit/b5ece951032138b19cb02dfc8172177bd337b37f))
|
|
11
|
+
|
|
5
12
|
## [0.47.3](https://github.com/Optolith/database-schema/compare/v0.47.2...v0.47.3) (2026-06-13)
|
|
6
13
|
|
|
7
14
|
|
package/gen/types.d.ts
CHANGED
|
@@ -9410,6 +9410,25 @@ export interface CultureLanguage {
|
|
|
9410
9410
|
* The language specializations, if any.
|
|
9411
9411
|
*/
|
|
9412
9412
|
specializations?: LanguageSpecialization_ID[]
|
|
9413
|
+
|
|
9414
|
+
/**
|
|
9415
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
9416
|
+
*/
|
|
9417
|
+
translations?: {
|
|
9418
|
+
[localeId: string]: CultureLanguageTranslation
|
|
9419
|
+
}
|
|
9420
|
+
}
|
|
9421
|
+
|
|
9422
|
+
export interface CultureLanguageTranslation {
|
|
9423
|
+
/**
|
|
9424
|
+
* The concrete language specialization, if the language allows to specify arbitrary text.
|
|
9425
|
+
*/
|
|
9426
|
+
specialization?: string
|
|
9427
|
+
|
|
9428
|
+
/**
|
|
9429
|
+
* A different promt fro the language specialization, if the language allows to specify arbitrary text.
|
|
9430
|
+
*/
|
|
9431
|
+
specializationPrompt?: string
|
|
9413
9432
|
}
|
|
9414
9433
|
|
|
9415
9434
|
export interface Script {
|
package/lib/types/Culture.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export declare const Culture: DB.Entity<"Culture", {
|
|
|
3
3
|
language: DB.MemberDecl<DB.Array<DB.IncludeIdentifier<[], DB.TypeAlias<"CultureLanguage", DB.Object<{
|
|
4
4
|
id: DB.MemberDecl<DB.ReferenceIdentifier, true>;
|
|
5
5
|
specializations: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
|
|
6
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"CultureLanguageTranslation", {
|
|
7
|
+
specialization: DB.MemberDecl<DB.String, false>;
|
|
8
|
+
specializationPrompt: DB.MemberDecl<DB.String, false>;
|
|
9
|
+
}>, false>;
|
|
6
10
|
}>, []>>>, true>;
|
|
7
11
|
script: DB.MemberDecl<DB.Array<DB.ReferenceIdentifier>, false>;
|
|
8
12
|
area_knowledge: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"AreaKnowledge", DB.Object<{
|
package/lib/types/Culture.js
CHANGED
|
@@ -112,6 +112,16 @@ const CultureLanguage = DB.TypeAlias(import.meta.url, {
|
|
|
112
112
|
comment: "The language specializations, if any.",
|
|
113
113
|
type: DB.Array(LanguageSpecializationIdentifier(), { minItems: 1, uniqueItems: true }),
|
|
114
114
|
}),
|
|
115
|
+
translations: NestedTranslationMap(DB.Optional, "CultureLanguage", DB.Object({
|
|
116
|
+
specialization: DB.Optional({
|
|
117
|
+
comment: "The concrete language specialization, if the language allows to specify arbitrary text.",
|
|
118
|
+
type: DB.String({ minLength: 1 }),
|
|
119
|
+
}),
|
|
120
|
+
specializationPrompt: DB.Optional({
|
|
121
|
+
comment: "A different promt fro the language specialization, if the language allows to specify arbitrary text.",
|
|
122
|
+
type: DB.String({ minLength: 1 }),
|
|
123
|
+
}),
|
|
124
|
+
}, { minProperties: 1 })),
|
|
115
125
|
}),
|
|
116
126
|
});
|
|
117
127
|
const AreaKnowledge = DB.TypeAlias(import.meta.url, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optolith/database-schema",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.4",
|
|
4
4
|
"description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tde",
|