0
 Followers
2
 Likes

String format for FeedbackMessage

Frontend
New

Add native support for String Format inside Feedback Message text.

Reason 1: Usability

When creating a feedback message it is common to add text from variables in our screens. 

Ex: "Room "  + RoomId  + " successfully booked"

would become

"Room {0} successfully booked", RoomId

or create a field for each placeholder inside our string.


Reason 2: Cleaner Multilingual  Locales.

With placeholders, it would be easier to manipulate the text when working with Multilingual Applications.

Ex:
"Room " + RoomId + " successfully booked" would create two separate strings to be translated,  "Room " and " successfully booked". With only one string it would become easier for languages with different sintaxes to be translated.

Created on 10 Jan
Comments (1)

Changed the category to Frontend


views
170
Followers
0