Skip to content

Commit 9538dbd

Browse files
committed
Enable Angular 10 support
1 parent 53fd273 commit 9538dbd

File tree

7 files changed

+21
-14
lines changed

7 files changed

+21
-14
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"no-multi-spaces": "error",
3636
"import/prefer-default-export": "off",
3737
"class-methods-use-this": "off",
38-
"@typescript-eslint/object-curly-spacing": "off"
38+
"@typescript-eslint/object-curly-spacing": "off",
39+
"max-len": [2, 160]
3940
}
4041
},
4142
{

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

33
# Compiled output
4-
/dist
4+
**/dist
55
/tmp
66
/out-tsc
77
/bazel-out
88

99
# Node
10-
/node_modules
10+
**/node_modules
1111
npm-debug.log
1212
yarn-error.log
1313

@@ -29,10 +29,10 @@ yarn-error.log
2929
.history/*
3030

3131
# Miscellaneous
32-
/.angular/cache
32+
**/.angular
3333
.sass-cache/
3434
/connect.lock
35-
/coverage
35+
**/coverage
3636
/libpeerconnection.log
3737
testem.log
3838
/typings

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Format.js](https://formatjs.io/) based [@ngx/translate](https://github.com/ngx-translate/core) compiler.
44

5-
Supports Angular 13 || 14
5+
Supports Angular >= 10
66

77
## Install
88

@@ -33,6 +33,11 @@ import { AppComponent } from './app';
3333
export class AppModule {}
3434
```
3535

36+
## Troubleshooting
37+
38+
- With FormatJS HTML tags must be escaped with a `'` in the translation. E.g. `'<h1>'Your content goes here'</h1>'`
39+
- With FormatJS interpolation variables are surrounded by single brackets. E.g. `I am having {count} cats`
40+
3641
## Further links
3742

3843
- [Supported Syntax](https://formatjs.io/docs/core-concepts/icu-syntax)

angular.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4-
"newProjectRoot": "apps",
4+
"newProjectRoot": "projects",
55
"projects": {
66
"lib": {
77
"projectType": "library",
@@ -32,6 +32,5 @@
3232
}
3333
}
3434
}
35-
},
36-
"defaultProject": "lib"
35+
}
3736
}

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"lint": "eslint . --fix"
2020
},
2121
"peerDependencies": {
22-
"@angular/common": ">= 13",
23-
"@angular/core": ">= 13",
22+
"@angular/common": ">= 10",
23+
"@angular/core": ">= 10",
2424
"@ngx-translate/core": ">= 13",
2525
"intl-messageformat": ">= 10"
2626
},

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"strictInjectionParameters": true,
2929
"strictInputAccessModifiers": true,
3030
"strictTemplates": true
31-
}
31+
},
32+
"include": ["./src**/*.ts"]
3233
}

0 commit comments

Comments
 (0)