aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/commerce.ts
blob: 8b6a1e612b7194d52e82463e0c3c4d656ac32b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import type { LocaleEntry } from './definitions';

/**
 * The possible definitions related to commerce.
 */
export type CommerceDefinition = LocaleEntry<{
  /**
   * Department names inside a shop.
   */
  department: string[];

  /**
   * Product name generation definitions.
   */
  product_name: CommerceProductNameDefinition;

  /**
   * Descriptions for products.
   */
  product_description: string[];
}>;

/**
 * The possible definitions related to product name generation.
 */
export interface CommerceProductNameDefinition {
  /**
   * Adjectives describing a product (e.g. tasty).
   */
  adjective: string[];

  /**
   * Materials describing a product (e.g. wood).
   */
  material: string[];

  /**
   * Types of products (e.g. chair).
   */
  product: string[];
}