added translation

This commit is contained in:
sdarbinyan
2026-02-20 09:01:02 +04:00
parent 083b270c74
commit 6850a911f3
22 changed files with 1219 additions and 136 deletions

View File

@@ -1,3 +1,12 @@
/**
* Per-language translation content for an item.
*/
export interface ItemTranslation {
name?: string;
simpleDescription?: string;
description?: ItemDescriptionField[];
}
export interface Item {
id: string;
name: string;
@@ -13,6 +22,8 @@ export interface Item {
description: ItemDescriptionField[];
subcategoryId: string;
comments?: Comment[];
/** Optional translations keyed by language code: { ru: { name: '...', simpleDescription: '...', description: [...] } } */
translations?: { [lang: string]: ItemTranslation };
}
export interface ItemDescriptionField {