Closed harkairt closed 2 years ago
I'd like to have a welcome message. If param is specified then it should return Welcome Bob!, but if param is missing/null, it should return Welcome! (notice the ! without the space after the parameter). Right now what I can achieve is Welcome !
Welcome Bob!
Welcome!
!
Welcome !
You can achieve that using 2 different translation keys and using the null check to choose what to display. Am I missing something?
I'd like to have a welcome message. If param is specified then it should return
Welcome Bob!
, but if param is missing/null, it should returnWelcome!
(notice the!
without the space after the parameter). Right now what I can achieve isWelcome !