translateDocument function

String translateDocument(
  1. String documentName,
  2. String language
)

Implementation

String translateDocument(String documentName, String language) {
  if (language == Languages.indonesian.value) {
    if (documentName == DocumentTypes.driverLicense.value) {
      return "Surat Izin Mengemudi";
    }
  }

  return documentName;
}