I have default
locale and /nl
locale.
I am having an issue with ng build --prod --localize
. it says:
Locale data for 'en-US' cannot be found. No locale data will be included for this locale.
But it continues to build, However in dist/myProject
I have folder en-US
and nl/
So I upload in the production server in htdocs folder all contents from en-US
and nl
folder
so my final production url is:
Loads default:
mydomain.com/ redirects to: mydomain.com/dashboard
Loads nl locale:
mydomain.com/nl redirect to: mydomain.com/nl/dashboard
When I load the first time both work fine but when I refresh the page on both cases it goes blank with 404 on the file:
styles, runtime, polyfills, main which contains the en-US
path on it.
I am not sure why as before with the previous version this wasn't an issue.
Any ideas why this is?