Skip to content

Schema File

The schema file defines the structure of a translation file.

Representation

ts
interface PhraseyZSchemaType {
    keys: {
        name: string;
        description?: string;
        parameters?: string[];
    }[];
}
interface PhraseyZSchemaType {
    keys: {
        name: string;
        description?: string;
        parameters?: string[];
    }[];
}

Example

yaml
keys:
    - name: HelloThere
      description: Represents a "Hello!" message.

    - name: HowAreYou
      description: Represents a "How are you?" message.

    - name: ThankYou
      description: Represents a "Thank you!" message.

    - name: HelloX
      description: Say "Hello" to an user.
      parameters: [user]
keys:
    - name: HelloThere
      description: Represents a "Hello!" message.

    - name: HowAreYou
      description: Represents a "How are you?" message.

    - name: ThankYou
      description: Represents a "Thank you!" message.

    - name: HelloX
      description: Say "Hello" to an user.
      parameters: [user]

Made with ❤️ by Zyrouge.