Separate string in camelCase

-1

Is it possible to use Javascript convert string in camelCase, eg: areaEspacoReservado in Área espaço reservado obs: add accents where needed?

    
asked by anonymous 12.07.2018 / 21:37

1 answer

1

It is possible, but laborious. You would need to create an accent "dictionary" to convert ( area to área , for example). The stream would be:

  • Split words with regex
  • Perform word translation with the dictionary
  • Manipulate the text to keep only the first letter of capital
  • 12.07.2018 / 21:42