Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular UI: Added the @angular/localize package to startup templates #10100

Merged
merged 1 commit into from
Sep 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 23 additions & 22 deletions templates/app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,41 @@
"@abp/ng.tenant-management": "~4.4.2",
"@abp/ng.theme.basic": "~4.4.2",
"@abp/ng.theme.shared": "~4.4.2",
"@angular/animations": "~12.0.0",
"@angular/common": "~12.0.0",
"@angular/compiler": "~12.0.0",
"@angular/core": "~12.0.0",
"@angular/forms": "~12.0.0",
"@angular/platform-browser-dynamic": "~12.0.0",
"@angular/platform-browser": "~12.0.0",
"@angular/router": "~12.0.0",
"@angular/animations": "~12.2.6",
"@angular/common": "~12.2.6",
"@angular/compiler": "~12.2.6",
"@angular/core": "~12.2.6",
"@angular/forms": "~12.2.6",
"@angular/localize": "~12.2.6",
"@angular/platform-browser": "~12.2.6",
"@angular/platform-browser-dynamic": "~12.2.6",
"@angular/router": "~12.2.6",
"rxjs": "~6.6.0",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@abp/ng.schematics": "~4.4.2",
"@angular-devkit/build-angular": "~12.0.0",
"@angular-eslint/builder": "12.1.0",
"@angular-eslint/eslint-plugin-template": "12.1.0",
"@angular-eslint/eslint-plugin": "12.1.0",
"@angular-eslint/schematics": "12.1.0",
"@angular-eslint/template-parser": "12.1.0",
"@angular/cli": "~12.0.0",
"@angular/compiler-cli": "~12.0.0",
"@angular/language-service": "~12.0.4",
"@angular-devkit/build-angular": "~12.2.6",
"@angular-eslint/builder": "~12.5.0",
"@angular-eslint/eslint-plugin": "~12.5.0",
"@angular-eslint/eslint-plugin-template": "~12.5.0",
"@angular-eslint/schematics": "~12.5.0",
"@angular-eslint/template-parser": "~12.5.0",
"@angular/cli": "~12.2.6",
"@angular/compiler-cli": "~12.2.6",
"@angular/language-service": "~12.2.6",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "4.23.0",
"@typescript-eslint/parser": "4.23.0",
"eslint": "^7.26.0",
"@typescript-eslint/eslint-plugin": "~4.31.2",
"@typescript-eslint/parser": "~4.31.2",
"eslint": "^7.32.0",
"jasmine-core": "~3.7.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine-html-reporter": "^1.5.0",
"karma-jasmine": "~4.0.0",
"karma": "~6.3.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^12.0.5",
"typescript": "~4.2.3"
}
Expand Down
5 changes: 5 additions & 0 deletions templates/app/angular/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ import 'zone.js'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/

/******************************************************************
* Load `$localize` - used if i18n tags appear in Angular templates.
*/
import '@angular/localize/init';
48 changes: 25 additions & 23 deletions templates/module/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"scripts": {
"ng": "ng",
"start": "ng serve dev-app --open",
"build": "ng build my-project-name --prod",
"build:app": "npm run symlink:copy -- --no-watch && ng build dev-app --prod",
"symlink:copy": "symlink copy --angular --packages @my-company-name/my-project-name --prod",
"build": "ng build my-project-name --configuration production",
"build:app": "npm run symlink:copy -- --no-watch && ng build dev-app --configuration production",
"symlink:copy": "symlink copy --angular --packages @my-company-name/my-project-name --configuration production",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
Expand All @@ -23,41 +23,43 @@
"@abp/ng.tenant-management": "~4.4.2",
"@abp/ng.theme.basic": "~4.4.2",
"@abp/ng.theme.shared": "~4.4.2",
"@angular/animations": "~12.0.0",
"@angular/common": "~12.0.0",
"@angular/compiler": "~12.0.0",
"@angular/core": "~12.0.0",
"@angular/forms": "~12.0.0",
"@angular/platform-browser": "~12.0.0",
"@angular/platform-browser-dynamic": "~12.0.0",
"@angular/router": "~12.0.0",
"@angular/animations": "~12.2.6",
"@angular/common": "~12.2.6",
"@angular/compiler": "~12.2.6",
"@angular/core": "~12.2.6",
"@angular/forms": "~12.2.6",
"@angular/localize": "~12.2.6",
"@angular/platform-browser": "~12.2.6",
"@angular/platform-browser-dynamic": "~12.2.6",
"@angular/router": "~12.2.6",
"rxjs": "~6.6.0",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@abp/ng.schematics": "~4.4.2",
"symlink-manager": "^1.5.0",
"@angular-devkit/build-angular": "~12.0.4",
"@angular-eslint/builder": "12.1.0",
"@angular-eslint/eslint-plugin": "12.1.0",
"@angular-eslint/eslint-plugin-template": "12.1.0",
"@angular-eslint/schematics": "12.1.0",
"@angular-eslint/template-parser": "12.1.0",
"@angular/cli": "~12.0.0",
"@angular/compiler-cli": "~12.0.0",
"@angular-devkit/build-angular": "~12.2.6",
"@angular-eslint/builder": "~12.5.0",
"@angular-eslint/eslint-plugin": "~12.5.0",
"@angular-eslint/eslint-plugin-template": "~12.5.0",
"@angular-eslint/schematics": "~12.5.0",
"@angular-eslint/template-parser": "~12.5.0",
"@angular/cli": "~12.2.6",
"@angular/compiler-cli": "~12.2.6",
"@angular/language-service": "~12.2.6",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "4.23.0",
"@typescript-eslint/parser": "4.23.0",
"eslint": "^7.26.0",
"@typescript-eslint/eslint-plugin": "~4.31.2",
"@typescript-eslint/parser": "~4.31.2",
"eslint": "^7.32.0",
"jasmine-core": "~3.7.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^12.0.0",
"symlink-manager": "^1.5.0",
"typescript": "~4.2.3"
}
}
5 changes: 5 additions & 0 deletions templates/module/angular/projects/dev-app/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ import 'zone.js'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/

/******************************************************************
* Load `$localize` - used if i18n tags appear in Angular templates.
*/
import '@angular/localize/init';