import prefix from "../global/prefix";
/**
 * Last modified: 2024-07-11 23:23:50
 */
const lang = {
    name: 'en-US',
    puncs: {
        ',': '，',
        '.': '。',
        '!': '！',
        '" ': '“',
        ' "': '”',
        '...': '……',
        ';': '；',
        ':': '：',
        '?': '？'
    },
    ajax: {
        abort: `<i class="${prefix}c-warn">Aborted the request!</i>`,
        timeout: `<i class="${prefix}c-error">Request timed out!</i>`,
        error: `<i class="${prefix}c-error">Error status: {{this.status}}</i>`,
        submit: {
            btn: 'Submitting',
            succ: 'Congratulations, submission successful!',
            fail: 'Sorry, submission failed!',
        }
    },
    more: {
        unfold: 'Collapse',
        fold: 'Fold',
    },
    button: {
        default: 'New Button',
        confirm: 'Confirm',
        cancel: 'Cancel',
        close: 'Close',
        reset: 'Reset',
        submit: 'Submit',
        today: 'Today',
        tomorrow: 'Tomorrow',
        yesterday: 'Yesterday',
        prev: 'Previous',
        next: 'Next'
    },
    placehold: {
        note: 'Please write down the remarks!',
        fileName: 'New File', 
        downloadName: 'Download File',
    },
    form: {
        placeholder: 'Please enter...',
        fileLabel: 'Please select a file...',
        fileMulti: '{{this.data}} files: ',
        maxLength: 'Up to {{this.total}} characters can be entered, {{this.value}} entered, {{this.remaining}} characters remaining.',
        minLength: 'At least {{this.min}} characters should be entered, {{this.value}} entered, {{this.remaining}} more to enter.',
        limitLength: 'At least {{this.min}} characters should be entered, up to {{this.max}} characters can be entered, {{this.value}} entered.',
        maxNumber: 'Maximum value {{this.max}}.',
        minNumber: 'Minimum value {{this.min}}.',
        limitNumber: 'Value range {{this.min}}~{{this.max}}.',
        exceed: 'Exceeded.',
        range: 'Value range {{this.min}}~{{this.max}}.',
    },
    valid: {
        regLocal: '\u4e00-\u9fa5',
        types: {
            'a': 'lowercase letters',
            'A': 'uppercase letters',
            'd': 'numbers',
            '~': 'special characters',
            '@': 'Chinese characters',
        },
        message: {
            wrongRule: 'Validation rule error, please correct!',
            wrongFormat: 'Value format error, should be text format!',
            noValids: 'The form has no validation fields!', 
        },
        strFormat: 'Value format error, should be text format!', 
        arrFormat: 'Parameter format error, should be in array format!', 
        succ: '{{ this.label || "" }} passed the validation!',
        fail: '{{ this.label || "" }} validation failed!',
        required: '{{ this.label }} is required!',
        email: 'Please enter a correct email format for {{ this.label }}!',
        cellphone: 'Please enter an 11-digit phone number for {{ this.label }}!',
        landline: 'Please enter the correct landline number for {{ this.label }}!',
        ip: 'Please enter the correct IP address for {{ this.label }}!',
        id: 'Please enter the correct ID card number for {{ this.label }}!',
        zip: '{{ this.label }} can only be a 6-digit postal code!',
        url: 'Please enter the correct domain name for {{ this.label }}!',
        plate: 'Please enter the correct license plate number for {{ this.label }}!',
        locale: '{{ this.label }} can only be filled with Chinese characters!',
        letter: '{{ this.label }} can only be filled with uppercase and lowercase English letters!',
        string: '{{ this.label }} can only be filled with uppercase and lowercase English letters and numbers!',
        password: '{{ this.label }} can only be filled with uppercase and lowercase English letters, numbers, and special characters!',
        ymdhms: '{{ this.label }} should be in the format similar to 2022-11-13 2:56:12!',
        ymd: '{{ this.label }} should be in the format similar to 2022-11-13!',
        hms: '{{ this.label }} should be in the format similar to 2:56:12!',
        ym: '{{ this.label }} should be in the format similar to 2022-11!',
        y: '{{ this.label }} can only be a 4-digit year!',
        m: '{{ this.label }} should be a month from 1 to 12!',
        d: '{{ this.label }} should be a day from 1 to 31!',
        date: 'Please enter a valid date for {{ this.label }}!',
        integer: '{{ this.label }} can only be a positive integer starting with a non-zero digit!',
        number: '{{ this.label }} can only be a number, including positive and negative numbers, integers, and decimals!',
        'date=': '{{ this.label }} must be {{ this.data }}!',
        'date>': '{{ this.label }} must be after {{ this.data }}!',
        'date>=': '{{ this.label }} cannot be earlier than {{ this.data }}!',
        'date<': '{{ this.label }} cannot exceed {{ this.data }}!',
        'date<=': '{{ this.label }} cannot be later than {{ this.data }}!',
        'date><': '{{ this.label }} must be after {{ this.data[0] }} and not exceed {{ this.data[1] }}!',
        'date><=': '{{ this.label }} must be after {{ this.data[0] }} and not later than or equal to {{ this.data[1] }}!',
        'date>=<': '{{ this.label }} must be after or equal to {{ this.data[0] }} and not exceed {{ this.data[1] }}!',
        'date>=<=': '{{ this.label }} cannot be earlier than {{ this.data[0] }} and cannot be later than {{ this.data[1] }}!',
        'than=': '{{ this.label }} must be equal to {{ this.data }}!',
        'than>': '{{ this.label }} must be greater than {{ this.data }}!',
        'than>=': '{{ this.label }} must be greater than or equal to {{ this.data }}!',
        'than<': '{{ this.label }} must be less than {{ this.data }}!',
        'than<=': '{{ this.label }} must be less than or equal to {{ this.data }}!',
        'than><': '{{ this.label }} must be greater than {{ this.data[0] }} and less than {{ this.data[1] }}!',
        'than><=': '{{ this.label }} must be greater than {{ this.data[0] }} and less than or equal to {{ this.data[1] }}!',
        'than>=<': '{{ this.label }} must be greater than or equal to {{ this.data[0] }} and less than {{ this.data[1] }}!',
        'than>=<=': '{{ this.label }} must be greater than or equal to {{ this.data[0] }} and less than or equal to {{ this.data[1] }}!',
        'length=': '{{ this.label }} has entered {{ this.value.length }} characters, can only enter {{ this.data }} characters!',
        'length>': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters needs to be more than {{ this.data }}!',
        'length>=': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters cannot be less than {{ this.data }}!',
        'length<': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters needs to be less than {{ this.data }}!',
        'length<=': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters cannot exceed {{ this.data }}!',
        'length><': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters needs to be more than {{ this.data[0] }} and less than {{ this.data[1] }}!',
        'length><=': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters needs to be more than {{ this.data[0] }} and less than or equal to {{ this.data[1] }}!',
        'length>=<': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters needs to be more than or equal to {{ this.data[0] }} and less than {{ this.data[1] }}!',
        'length>=<=': '{{ this.label }} has entered {{ this.value.length }} characters, the number of characters cannot be less than {{ this.data[0] }} and cannot exceed {{ this.data[1] }}!',
        'count=': '{{ this.label }} has {{ this.value }} items, must and can only select {{ this.data }} items!',
        'count>': '{{ this.label }} has {{ this.value }} items, the number of selected items needs to be more than {{ this.data }}!',
        'count>=': '{{ this.label }} has {{ this.value }} items, at least select {{ this.data }} items!',
        'count<': '{{ this.label }} has {{ this.value }} items, the number of selected items needs to be less than {{ this.data }}!',
        'count<=': '{{ this.label }} has {{ this.value }} items, can select up to {{ this.data }} items!',
        'count><': '{{ this.label }} has {{ this.value }} items, the number of selected items needs to be more than {{ this.data[0] }} and less than {{ this.data[1] }}!',
        'count><=': '{{ this.label }} has {{ this.value }} items, the number of selected items needs to be more than {{ this.data[0] }} and less than or equal to {{ this.data[1] }}!',
        'count>=<': '{{ this.label }} has {{ this.value }} items, the number of selected items needs to be more than or equal to {{ this.data[0] }} and less than {{ this.data[1] }}!',
        'count>=<=': '{{ this.label }} has {{ this.value }} items, at least select {{ this.data[0] }} items, and cannot exceed {{ this.data[1] }} items!',
        include: 'The value of {{ this.label }} should be in "{{ this.data }}"!',
        exclude: 'The value of {{ this.label }} cannot be in "{{ this.data }}"!',
        same: 'The value of {{ this.label }} field is inconsistent with "{{ this.data[1] || this.data[0] }}" field value!',
        different: 'The value of {{ this.label }} field cannot be the same as "{{ this.data[1] || this.data[0] }}" field value!',
        strength: 'The current strength of {{ this.label }} is {{ this.value}}, it needs to reach {{ this.data }}!',
        specific: `{{ this.label }} requires {{ for(let k in this.data){/}}{{k+'at least'+this.data[k]+'individual'}}{{ (Object.keys(this.data).slice(-1)[0] !== k)? ',' : ''}}{{}/}}!`,
        combine: `{{ this.label }} requires {{ this.data.types.join('、') }} at least {{ this.data.total }} kinds!`,
    },
    message: {
        heading: {
            warn: 'Operation Warning!',
            succ: 'Operation Successful!',
            error: 'Operation Failed!',
            issue: 'Operation Issue!',
            info: 'Information Tip!',
        },
        content: {
            warn: 'Warning! There may be faults during operation, please pay attention to troubleshooting!',
            succ: 'Congratulations! Operation is smooth or successful!',
            error: 'Failure! An error occurred during operation or the operation failed!',
            issue: 'Questions! There are issues that need to be resolved during operation!',
            info: 'Tip! No abnormality occurred during operation, please continue!',
        },
    },
    tree: {
        label: 'New Branch',
    },
    flat: {
        label: 'New Project'
    },
    spy: {
        isObserved: `The media file {{ this.src }} is already being observed and does not need to add monitoring operations!`,
        isUnobserved: `The media file {{ this.src }} has not been monitored yet and does not need to cancel monitoring operations!`
    },
    tags: {
        emptyholder: 'No tags created yet!',
        placeholder: 'Please enter...',
        includePart: 'Contains duplicate tags!',
        includeFull: 'The tag is completely duplicated, adding failed!',
    },
    retrieval: {
        status: `There are <u>{{this.value}}</u> results that meet the requirements of <s>{{this.keys}}</s>!`,
        nullKeys: `No search terms and no search results!`,
    }
}
export default lang;
