Umm - so how did you do that exactly? Where in the code did you set the default language to "en-AU"? Afterall that was my question - how do I do it?
Hi,
We are using ASP.NET Core/Angular.
I am struggling to change the locale to en-AU so that on client side dates are in dd/mm/yyyy format. BTW - I am also a bit confused as to why I see code such as the following. It suggests to me that you use Locale and Language interchangeably.
export function shouldLoadLocale(): boolean { return abp.localization.currentLanguage.name && abp.localization.currentLanguage.name !== 'en-US'; }
I have added the language "en-AU" (well its really a locale) on server side.
On client side I cant select that language for some reason using the language dropdown. I can see it there, but when I do select "English (Australia)" the page reloads and it is back to "English". Not "English (Australia)".
So I have tried forcing abp.localization.currentLanguage.name to "en-AU" and I can see that applying to Angular and Moment.
But all the dates are still in US format. For example when I look at the Audit Log there is a date range picker - and that is in US format still (ie mm/dd/yyyy).
What is the simple way for me to add support for "en-AU" and then ensure the UI uses that locale?
Cheers Mark
Yeah sorry - the path was invalid.
We have purchased ASP.NET Zero from you and so have a support contract. I dont see where we get support from you? Is this forum the only way to get support???
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" >
<file value="D:/home/LogFiles/Logs.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10000KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level %date [%-5.5thread] %-40.40logger - %message%newline" />
</layout>
</appender>
<root>
<appender-ref ref="RollingFileAppender" />
<level value="DEBUG" />
</root>
</log4net>
Here is what is in my config file:
<?xml version="1.0" encoding="utf-8" ?> <log4net> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" > <file value="D:/home/LogFiles/Logs.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="10" /> <maximumFileSize value="10000KB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%-5level %date [%-5.5thread] %-40.40logger - %message%newline" /> </layout> </appender> <root> <appender-ref ref="RollingFileAppender" /> <level value="DEBUG" /> </root> </log4net>
My Website Logs (in Admin/Maintenance) are not working in Azure. They work fine locally. I cant find any doco for them.
I have tried googling "Asp.net zero website logs" - but nothing.
So how do I configure them on Azure?
We are using .NET Core/Angular
Hi, I have run into package.json issues and so I cant get my angular code to build. All sorts of issues with incompatible angular vs types script issues. Not sure how to get back to a working state. It all just happened when I added ng2-pdf-viewer. Suddenly "npm start" would no longer compile. I spent hours mucking around with yarn and upgrading app versions - but to no avail. This is my package.json:
{ "name": "abp-zero-template", "version": "6.9.0", "license": "MIT", "angular-cli": {}, "scripts": { "ng": "ng", "publish": "ng build --env=prod", "publishprod": "ng build --configuration=production", "publishstaging": "ng build --configuration=staging", "publishtest": "ng build --configuration=test", "publishdevelopment": "ng build --configuration=development", "start": "ng serve --host 0.0.0.0 --port 4200", "hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr", "test": "ng test", "pree2e": "webdriver-manager update --standalone false --gecko false", "e2e": "protractor" }, "private": false, "dependencies": { "@angular-devkit/build-angular": "^0.803.6", "@angular/animations": "^8.2.1", "@angular/cdk": "^8.2.1", "@angular/cli": "^8.2.1", "@angular/common": "^8.2.1", "@angular/compiler": "^8.2.1", "@angular/compiler-cli": "^8.2.1", "@angular/core": "^8.2.1", "@angular/forms": "^8.2.1", "@angular/http": "^7.2.15", "@angular/platform-browser": "^8.2.1", "@angular/platform-browser-dynamic": "^8.2.1", "@angular/platform-server": "^8.2.1", "@angular/router": "^8.2.1", "@aspnet/signalr": "^1.1.2", "@swimlane/ngx-charts": "^10.1.0", "abp-ng2-module": "^3.2.4", "abp-web-resources": "^3.8.5", "adal-angular": "^1.0.17", "angular-oauth2-oidc": "^5.0.2", "angular2-counto": "^1.2.5", "angular2-text-mask": "^9.0.0", "animate.css": "^3.7.0", "cookieconsent": "^3.1.0", "core-js": "^2.6.5", "devextreme": "19.1.6", "devextreme-angular": "^19.1.6", "famfamfam-flags": "^1.0.0", "js-cookie": "^2.2.0", "localforage": "^1.7.3", "lodash": "^4.17.11", "moment": "^2.24.0", "moment-timezone": "^0.5.23", "ng-recaptcha": "^4.2.1", "ng2-file-upload": "^1.3.0", "ng2-pdf-viewer": "^5.3.4", "ngx-bootstrap": "^4.0.0", "ngx-image-cropper": "^1.3.8", "ngx-perfect-scrollbar": "^7.2.1", "object-path": "^0.11.4", "primeicons": "^1.0.0", "primeng": "^7.1.0", "push.js": "^1.0.9", "quill": "^1.3.6", "rtl-detect": "^1.0.2", "rxjs": "^6.4.0", "simple-line-icons": "^2.4.1", "stream": "^0.0.2", "sweetalert2": "^8.8.0", "text-mask-addons": "^3.8.0", "zone.js": "^0.9.0" }, "devDependencies": { "@angularclass/hmr": "^2.1.3", "@angularclass/hmr-loader": "^3.0.4", "@types/jasmine": "~3.3.12", "@types/jasminewd2": "~2.0.6", "@types/lodash": "^4.14.123", "@types/moment-timezone": "^0.5.12", "@types/node": "^11.13.0", "codelyzer": "^5.0.0", "jasmine-core": "~3.3.0", "jasmine-spec-reporter": "^4.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "~2.2.0", "karma-cli": "~2.0.0", "karma-coverage-istanbul-reporter": "^2.0.5", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "nswag": "12.0.20", "protractor": "~5.4.2", "ts-node": "~8.0.3", "tslint": "~5.15.0", "typescript": "3.4.5" } }
I have just downloaded the latest version for my project of ASP.NET Zero (7.2) and want to upgrade my angular project and use the new package.json. How do I go about doingthis upgrade?
Or dor you recommend I do something else to get my angular code building again.
Many thanks Mark
Hi,
We are using ASP.NET Zero Core/Angular.
We are uploading and storing PDF documents using the TempFileCacheManager and BinaryObjectManager (storing it in the database). Works great.
I now am presenting in a DevExtreme DataGrid the list of files that have been uploaded. I want the user to be able to click on a file in the grid to view the PDF document. SO the pdf document will need to be downloaded.
Is there something you have for that? How do you suggest I proceed?
Many thanks
There is a lot of interest for your work I see. Nicely done! As it turns out we also want to integrate DevExpress Reporting in our ASP.NET Core/Angular Zero solution. So if you can share with me your link that would be most appreciated.
Email : [email protected]
Thanks again Mark