Skip to content

Commit ba92b51

Browse files
committed
translations!
1 parent 5870994 commit ba92b51

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,29 @@ Then we need to include carbon-components in `src/styles.scss`:
1717
@import "~carbon-components/scss/globals/scss/styles.scss";
1818
```
1919

20+
And set up our translations in `src/app/app.module.ts`:
21+
22+
```ts
23+
import { BrowserModule } from '@angular/platform-browser';
24+
import { NgModule } from '@angular/core';
25+
import { TranslateModule } from '@ngx-translate/core';
26+
27+
import { AppComponent } from './app.component';
28+
29+
@NgModule({
30+
declarations: [
31+
AppComponent
32+
],
33+
imports: [
34+
BrowserModule,
35+
TranslateModule.forRoot()
36+
],
37+
providers: [],
38+
bootstrap: [AppComponent]
39+
})
40+
export class AppModule { }
41+
```
42+
2043
_Finally_ we can run `npm start` and start building out our application!
2144

2245
> *Note:* This isn't the only way to bootstrap a `carbon-components-angular` application, but the combination of `@angular/cli` and the `carbon-components` is our recommended setup.

0 commit comments

Comments
 (0)