Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Added dutch language and everything stops working... #5591


User avatar
0
jguldemond created

When we add a new language, Dutch (nl-NL) everything stops working.

We get a javascript error which indicates we are missing a nl-NL.js file when loading/initializing polyfill.js.

Any sugggestions?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    I think it is angular without defining this language code.

    <a class="postlink" href="https://github.com/angular/angular/blob/master/packages/common/locales/nl.ts">https://github.com/angular/angular/blob ... ales/nl.ts</a>

    [attachment=0:25k5169g]nL.png[/attachment:25k5169g]

  • User Avatar
    1
    ismcagdas created
    Support Team

    @maliming is right, Angular doesn't contain nl-NL culture. You can add a mapping to localeMappings in <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/appconfig.json">https://github.com/aspnetzero/aspnet-ze ... onfig.json</a>

    "localeMappings": [
        // other mappings...
    	{
    		"from": "nl-NL",
    		"to": "nl"
    	}
    ]