Base solution for your next web application
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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

13 Answer(s)
  • User Avatar
    0
    ectabyte created

    please help!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ectabyte created

    Thanks! The same error happens.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    maliming created
    Support Team

    https://aspnetzero.com/LicenseManagement

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ectabyte created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    maliming created
    Support Team

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ectabyte created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)