import 'package:get/get.dart';

import 'en_strings.dart';
import 'vi_strings.dart';

class AppStrings extends Translations {
  static const String localeCodeVi = 'vi';
  static const String localeCodeEn = 'en';

  @override
  Map<String, Map<String, String>> get keys => {
        localeCodeVi: viStrings,
        localeCodeEn: enStrings,
      };

  static String getString(String key) {
    var selectedLanguage = Get.locale.toString() == localeCodeEn ? enStrings : viStrings;
    var text = key;
    if (selectedLanguage.containsKey(key) && selectedLanguage[key] != null) {
      text = selectedLanguage[key] ?? key;
    }
    return text;
  }

  static String appTitle = 'appTitle';
  static String signIn = 'signIn';
  static String email = 'email';
  static String password = 'password';
  static String forgotPassword = 'forgotPassword';
  static String hintEmail = 'hintEmail';
  static String hintPassword = 'hintPassword';
  static String commonError = 'commonError';
  static String fieldIsRequired = 'fieldIsRequired';
  static String errorInvalidEmail = 'fieldIsRequired';
  static String errorInvalidPassword = 'errorInvalidPassword';
  static String cancel = 'cancel';
  static String select = 'select';
  static String notification = 'notification';
  static String work = 'work';
  static String system = 'system';
  static String inProcress = 'inProcress';
  static String complete = 'complete';
  static String subject = 'subject';
  static String fertilizationPage = 'fertilizationPage';
  static String fertilizationExamination = 'fertilizationExamination';
  static String numberOfBirths = 'numberOfBirths';
  static String bowWaitFertilization = 'bowWaitFertilization';
  static String haveFertilization = 'haveFertilization';
  static String noneFertilization = 'noneFertilization';
  static String reproductiveHealthCheck = 'reproductiveHealthCheck';
  static String handleHormone = 'handleHormone';
  //Main tab bar
  static String tabHome = 'tabHome';
  static String tabWork = 'tabWork';
  static String tabNotification = 'tabNotification';
  static String tabProfile = 'tabProfile';
  //Infomation Fertilization
  static String detail = 'detail';
  static String watching = 'watching';
  static String mating = 'mating';
  static String type = 'type';
  static String resultUpdate = 'resultUpdate';
  static String infomationFertilization = 'infomationFertilization';
  static String medicalExaminationPeople = 'medicalExaminationPeople';
  static String pleaseChoose = 'pleaseChoose';
  static String medicalExaminationDay = 'medicalExaminationDay';
  static String note = 'note';
  static String contentNote = 'contentNote';
  static String success = 'success';
  static String saveResult = 'saveResult';
  static String account = 'account';
  static String numberPhone = 'numberPhone';
  static String department = 'department';
  static String taxInfomation = 'taxInfomation';
  static String passowordVNI = 'passowordVNI';
  static String language = 'language';
  static String setting = 'setting';
  static String add = 'add';
  static String addCow = 'addCow';
  static String edit = 'edit';
  static String print = 'print';
  static String cancelTicker = 'cancelTicker';
  static String cancellationConfirmation = 'cancellationConfirmation';
  static String cancellSuccessfully = 'cancellSuccessfully';
  static String confirm = 'confirm';
  static String inputBow = 'inputBow';
  static String createTicker = 'createTicker';
  static String infomationBow = 'infomationBow';
  static String imageBow = 'imageBow';
  static String dateInput = 'dateInput';
  static String importLot = 'importLot';
  static String inputInfomation = 'inputInfomation';
  static String supplier = 'supplier';
  static String earNumber = 'earNumber';
  static String chipNumber = 'chipNumber';
  static String species = 'species';
  static String sex = 'sex';
  static String skinColor = 'skinColor';
  static String age = 'age';
  static String weight = 'weight';
  static String momBow = 'skinColor';
  static String reproduction = 'reproduction';
  static String historyBreeding = 'historyBreeding';
  static String generation = 'generation';
  static String source = 'source';
  static String typeBow = 'typeBow';
  static String detailBow = 'detailBow';
  static String infomation = 'infomation';
  static String listBow = 'listBow';
  static String createSuccess = 'createSuccess';
}
