Skip to content

Commit 6d12104

Browse files
authored
Merge pull request #156 from cal-smith/master
Remove ngx-translate and switch to framework agnostic inputs
2 parents f1d4674 + f1a8138 commit 6d12104

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+493
-557
lines changed

.storybook/bootstrap.module.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
import { NgModule } from "@angular/core";
2-
import { TranslateModule, TranslateService } from "@ngx-translate/core";
3-
const en = require("./../src/i18n/en.json");
42

53
@NgModule({
6-
imports: [
7-
TranslateModule.forRoot()
8-
]
94
})
105
export class BootstrapModule {
11-
constructor(private translateService: TranslateService) {
12-
this.translateService.setDefaultLang("en");
13-
this.translateService.use("en");
14-
this.translateService.setTranslation("en", en);
15-
}
166
}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Assuming we're starting with a new @angular/cli project:
88
```shell
99
$ npx @angular/cli new my-project --style=scss
1010
$ cd my-project
11-
$ npm i --save-dev carbon-components-angular carbon-components @ngx-translate/core
11+
$ npm i --save-dev carbon-components-angular carbon-components
1212
```
1313

1414
Then we need to include carbon-components in `src/styles.scss`:
@@ -24,7 +24,6 @@ Then set up our translations in `src/app/app.module.ts`:
2424
```ts
2525
import { BrowserModule } from '@angular/platform-browser';
2626
import { NgModule } from '@angular/core';
27-
import { TranslateModule } from '@ngx-translate/core';
2827

2928
import { AppComponent } from './app.component';
3029

@@ -34,7 +33,6 @@ import { AppComponent } from './app.component';
3433
],
3534
imports: [
3635
BrowserModule,
37-
TranslateModule.forRoot()
3836
],
3937
providers: [],
4038
bootstrap: [AppComponent]

0 commit comments

Comments
 (0)