You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example you can use variables with defaultMessage like intl.get('HELLO', { name }).d(`Hello, ${name}`); // "Hello, Tony". But is there anyway to get defaultMessage to work with locale template like intl.get('HELLO', { num }).d("You have {num, plural, =0 {no photos.} =1 {one photo.} other {# photos.}}" )" }) . For example, maybe add a parameter to intl.get: intl.get(key, variables, defaultMessage) or you may need to do some refactoring to make it work with current apis.
The text was updated successfully, but these errors were encountered:
In the example you can use variables with defaultMessage like
intl.get('HELLO', { name }).d(`Hello, ${name}`); // "Hello, Tony"
. But is there anyway to get defaultMessage to work with locale template likeintl.get('HELLO', { num }).d("You have {num, plural, =0 {no photos.} =1 {one photo.} other {# photos.}}" )" })
. For example, maybe add a parameter tointl.get
:intl.get(key, variables, defaultMessage)
or you may need to do some refactoring to make it work with current apis.The text was updated successfully, but these errors were encountered: