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

Add new XML language file #7936


User avatar
0
ectabyte created

How to add new language not at run time but with an XML file. I added an XML file to the server side but in angular it says: Cannot find module './sq-AL.js' System: Asp.net + Angular Language: Albanian


13 Answer(s)
  • User Avatar
    0
    ectabyte created

    please help!

  • User Avatar
    0
    maliming created
    Support Team

    I think it is angular localization that lacks sq-AL. You can map to sq.

    https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/appconfig.json#L5

  • User Avatar
    0
    ectabyte created

    Thanks! The same error happens.

  • User Avatar
    0
    maliming created
    Support Team

    You can try add in ngx-bootstrap-locale-mapping.service.ts to add: 'sq-AL': 'other language'

    Https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/ngx-bootstrap/ngx-bootstrap-locale-mapping.service.ts#L7-L23

  • User Avatar
    0
    ectabyte created

    Thank you for your quick response, but I can't open this link. Is it broken or I have to do something else?

  • User Avatar
    0
    maliming created
    Support Team

    https://aspnetzero.com/LicenseManagement

  • User Avatar
    0
    ectabyte created

    Thanks again. I think the error happens because the file sq.js lacks from this folder:

  • User Avatar
    0
    maliming created
    Support Team

    Yes, we need to map sq-AL to other existing languages.

  • User Avatar
    0
    ectabyte created

    I just create a file here named sq.js (copy-paste a one here) and the app started, but with no translations.

  • User Avatar
    0
    maliming created
    Support Team

    I think that unless ngx-bootstrap adds the language you need(sq or sq-AL), you won't be able to use it.

  • User Avatar
    0
    ectabyte created

    Is there any other solution? This is the last step to deploy my project!!

  • User Avatar
    0
    maliming created
    Support Team

    As far as I know, there is no other good way.

    You can temporarily map the language until ngx bootstrap adds a new language

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.