# Bug OP-2499 - Error: "Cannot find module './angular-locale_pt-BR.js'" in OpenProject 5.0

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-2499

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 5.0.5 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Hello Guys,

I upgrade from openproject-ce 4.2.9 (package install - Debian) and was not able to run in Brazilian Portuguese. Javascript throw error “Cannot find module ‘./angular-locale\_pt-BR.js’”. Look in Angular map, it is lower case ‘./angular-locale\_pt-br.js’. In html, ‘lang’ attribute is ‘pt-BR’. Then I add toLowerCase in the code below (frontend/app/openproject-app.js):

// depends on the html element having a ‘lang’ attribute  
var documentLang = angular.element(‘html’).attr(‘lang’).toLowerCase() || ‘en’;  
require(‘angular-i18n/angular-locale\_’ + documentLang + ‘.js’);

Its run, but I am not sure.  
Thank you.  
(Sorry my English)
