export default {
  en: {
    'pisell2.pro.selector.mode.single': 'Single choice',
    'pisell2.pro.selector.mode.multiple': 'Multiple choice',
    'pisell2.pro.selector.validate.required-msg': 'Please select',
    'pisell2.pro.selector.validate.requireOneOf-msg': 'This group must select one of the specified collections',
    'pisell2.pro.selector.required-tag': 'Required',
    'pisell2.pro.selector.validate.min-selection': function pisell2ProSelectorValidateMinSelection(min, label) {
      return "Select at least ".concat(min).concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.validate.max-selection': function pisell2ProSelectorValidateMaxSelection(max, label) {
      return "Select at most ".concat(max).concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.tip.require-one-option': 'Choose 1',
    'pisell2.pro.selector.tip.min-max-selection': function pisell2ProSelectorTipMinMaxSelection(min, max) {
      // 固定数量：min=max
      if (min === max && min > 0) {
        return "Choose ".concat(min);
      }
      // 仅max：min=0或undefined
      if ((!min || min === 0) && max > 0) {
        return "Choose up to ".concat(max);
      }
      // 范围：min>0, max>min
      if (min > 0 && max > min) {
        return "Choose ".concat(min, "-").concat(max);
      }
      // 仅min：min>0, max=0或undefined
      if (min > 0 && (!max || max === 0)) {
        return "Choose at least ".concat(min);
      }
      return '';
    }
  },
  'zh-CN': {
    'pisell2.pro.selector.mode.single': '单选',
    'pisell2.pro.selector.mode.multiple': '多选',
    'pisell2.pro.selector.validate.required-msg': '请选择',
    'pisell2.pro.selector.validate.requireOneOf-msg': '该组必须选择指定集合之一',
    'pisell2.pro.selector.required-tag': '必选',
    'pisell2.pro.selector.validate.min-selection': function pisell2ProSelectorValidateMinSelection(min, label) {
      return "\u81F3\u5C11\u9009 ".concat(min, " \u4E2A").concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.validate.max-selection': function pisell2ProSelectorValidateMaxSelection(max, label) {
      return "\u6700\u591A\u9009 ".concat(max, " \u4E2A").concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.tip.require-one-option': '需选 1 项',
    'pisell2.pro.selector.tip.min-max-selection': function pisell2ProSelectorTipMinMaxSelection(min, max) {
      // 固定数量：min=max
      if (min === max && min > 0) {
        return "\u9700\u9009 ".concat(min, " \u4E2A");
      }
      // 仅max：min=0或undefined
      if ((!min || min === 0) && max > 0) {
        return "\u6700\u591A\u9009 ".concat(max, " \u4E2A");
      }
      // 范围：min>0, max>min
      if (min > 0 && max > min) {
        return "\u9009 ".concat(min, "-").concat(max, " \u4E2A");
      }
      // 仅min：min>0, max=0或undefined
      if (min > 0 && (!max || max === 0)) {
        return "\u81F3\u5C11\u9009 ".concat(min, " \u4E2A");
      }
      return '';
    }
  },
  'zh-HK': {
    'pisell2.pro.selector.mode.single': '單選',
    'pisell2.pro.selector.mode.multiple': '多選',
    'pisell2.pro.selector.validate.required-msg': '請選擇',
    'pisell2.pro.selector.validate.requireOneOf-msg': '該組必須選擇指定集合之一',
    'pisell2.pro.selector.required-tag': '必選',
    'pisell2.pro.selector.validate.min-selection': function pisell2ProSelectorValidateMinSelection(min, label) {
      return "\u81F3\u5C11\u9078 ".concat(min, " \u500B").concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.validate.max-selection': function pisell2ProSelectorValidateMaxSelection(max, label) {
      return "\u6700\u591A\u9078 ".concat(max, " \u500B").concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.tip.require-one-option': '需選 1 項',
    'pisell2.pro.selector.tip.min-max-selection': function pisell2ProSelectorTipMinMaxSelection(min, max) {
      // 固定數量：min=max
      if (min === max && min > 0) {
        return "\u9700\u9078 ".concat(min, " \u500B");
      }
      // 僅max：min=0或undefined
      if ((!min || min === 0) && max > 0) {
        return "\u6700\u591A\u9078 ".concat(max, " \u500B");
      }
      // 範圍：min>0, max>min
      if (min > 0 && max > min) {
        return "\u9078 ".concat(min, "-").concat(max, " \u500B");
      }
      // 僅min：min>0, max=0或undefined
      if (min > 0 && (!max || max === 0)) {
        return "\u81F3\u5C11\u9078 ".concat(min, " \u500B");
      }
      return '';
    }
  },
  ja: {
    'pisell2.pro.selector.mode.single': '単一選択',
    'pisell2.pro.selector.mode.multiple': '複数選択',
    'pisell2.pro.selector.validate.required-msg': '選択してください',
    'pisell2.pro.selector.validate.requireOneOf-msg': 'このグループは指定されたコレクションのいずれかを選択する必要があります',
    'pisell2.pro.selector.required-tag': '必須',
    'pisell2.pro.selector.validate.min-selection': function pisell2ProSelectorValidateMinSelection(min, label) {
      return "\u5C11\u306A\u304F\u3068\u3082".concat(min).concat(label ? ' ' + label : '', "\u3092\u9078\u629E");
    },
    'pisell2.pro.selector.validate.max-selection': function pisell2ProSelectorValidateMaxSelection(max, label) {
      return "\u6700\u5927".concat(max).concat(label ? ' ' + label : '', "\u3092\u9078\u629E");
    },
    'pisell2.pro.selector.tip.require-one-option': '1つ選択',
    'pisell2.pro.selector.tip.min-max-selection': function pisell2ProSelectorTipMinMaxSelection(min, max) {
      if (min === max && min > 0) {
        return "".concat(min, "\u3064\u9078\u629E");
      }
      if ((!min || min === 0) && max > 0) {
        return "\u6700\u5927".concat(max, "\u3064\u9078\u629E");
      }
      if (min > 0 && max > min) {
        return "".concat(min, "-").concat(max, "\u3064\u9078\u629E");
      }
      if (min > 0 && (!max || max === 0)) {
        return "\u5C11\u306A\u304F\u3068\u3082".concat(min, "\u3064\u9078\u629E");
      }
      return '';
    }
  },
  pt: {
    'pisell2.pro.selector.mode.single': 'Escolha única',
    'pisell2.pro.selector.mode.multiple': 'Múltipla escolha',
    'pisell2.pro.selector.validate.required-msg': 'Por favor, selecione',
    'pisell2.pro.selector.validate.requireOneOf-msg': 'Este grupo deve selecionar uma das coleções especificadas',
    'pisell2.pro.selector.required-tag': 'Obrigatório',
    'pisell2.pro.selector.validate.min-selection': function pisell2ProSelectorValidateMinSelection(min, label) {
      return "Selecione pelo menos ".concat(min).concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.validate.max-selection': function pisell2ProSelectorValidateMaxSelection(max, label) {
      return "Selecione no m\xE1ximo ".concat(max).concat(label ? ' ' + label : '');
    },
    'pisell2.pro.selector.tip.require-one-option': 'Escolha 1',
    'pisell2.pro.selector.tip.min-max-selection': function pisell2ProSelectorTipMinMaxSelection(min, max) {
      if (min === max && min > 0) {
        return "Escolha ".concat(min);
      }
      if ((!min || min === 0) && max > 0) {
        return "Escolha at\xE9 ".concat(max);
      }
      if (min > 0 && max > min) {
        return "Escolha ".concat(min, "-").concat(max);
      }
      if (min > 0 && (!max || max === 0)) {
        return "Escolha pelo menos ".concat(min);
      }
      return '';
    }
  }
};