I have utils.js file.
export function categoryIdToCategoryName(categoryId) { let name; switch (categoryId) { case constants.RISK_CATEGORY_LOW: na
You can directly use the yahoo intl library for this task: https://github.com/yahoo/intl-messageformat
Otherwise you can pass the formatMessage function from your react component to the functions it calls.
formatMessage