added translation
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user