syntax = "proto3";

package com.wix.ecommerce.platform_common.api;

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";

message TranslatableString {

    /* 
    __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).

    Min: 1 character.  
    Max: 200 characters.
    */
    string original = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 200];
    
    /*
    String translated into the buyer's language.

    Min: 1 character.  
    Max: 400 characters.
    Default: Same as `original`.
    */
    google.protobuf.StringValue translated = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 400];
}
