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.
Activity
cwtuan commentedon Sep 4, 2020
Currently, the defaultMessage is just support the ES6 string template.
I will take this into consideration for next major release.