3 Replies Latest reply on Aug 19, 2016 1:58 PM by Chris W. Griffith

    pt-BR number format

    nilsonuehara

      I must present values in pt-BR format (1.234,56).

      I try to use the script:

       

      <script src = "https://cdnjs.cloudflare.com/ajax/libs/angular-i18n/1.4.5/angular-locale_pt-br.js"> </ script>

       

      {{Item2.valor | number: 2}}

       

      In tests on the browser (Chrome) works correctly, however, when compiling by Phonegap Build and run on the Android, the format displayed is in en-US format (1,234.56)

       

      Note: I setup my environment (Windows 7) to build Android locally and it worked, but I'll need further build for iOS by Phonegap Build.

       

      --------------

       

      Preciso apresentar valores no formato pt-BR 1.234,56 e para isso uso o script

      <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-i18n/1.4.5/angular-locale_pt-br.js"></script>

      {{
      item2.valor | number:2 }}

      Nos testes no browser (Chrome) funciona corretamente, porém, quando compilo pelo Phonegap Build e rodo no Android o formato volta a ser apresentado no formato en-US (1,234.56)

      Obs: Configurei meu ambiente para compilar para Android localmente e funcionou, porém ainda precisarei compilar para iOS pelo Phonegap Build.