prefeiturasp/SME-FilaDaCreche

View on GitHub
src/utils/composeDateOfBirthMsg.js

Summary

Maintainability
A
0 mins
Test Coverage
import STRINGS from 'configs/Strings';
import GLOBALS from 'configs/MainConfigs';

export default function composeDateOfBirthMsg(month, year) {
  let monthName = GLOBALS.months_list[month - 1];
  monthName = monthName ? monthName.toLowerCase() : '';
  return STRINGS.date_of_birth_message(monthName, year);
}