moment.locale locally within function in angular code example Example: moment not translating import moment from 'moment' import 'moment/locale/pt-br'