Angular translate static files loader not working in Android


#1

My app is using Angular Translate. It works very fine on the web using ionic serve.
But when I build it to Android, the json file isn’t loaded and no error is shown. I use chrome inspector to check the network requests.
I have checked an earlier question, my prefix doesn’t have / at the beginning.

          $translateProvider.useStaticFilesLoader({
              prefix: 'js/locales/',
              suffix: '.json'
            })
          $translateProvider.preferredLanguage(locale).fallbackLanguage('en').useSanitizeValueStrategy('escapeParameters');          
          })

My directory structure

—/www
------js
---------locales
-----------en.json
-----------fi.json

I am very frustrated now :frowning: