This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Effect() | |
findAddresses: Observable<any> = this.actions.pipe( | |
ofType(LocationActionTypes.FindAddresses), | |
map(action => action.partialAddress), | |
debounceTime(400), | |
distinctUntilChanged(), | |
switchMap(partialAddress => this.backend | |
.findAddresses(partialAddress) | |
.pipe( | |
map(results => new FindAddressesFulfilled(results)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Effect() | |
loadAllBlogPosts$: Observable<any> = this.actions$.pipe( | |
ofType(PokemonActions.loadPokemon), | |
mergeMap(() => | |
this.postsService.getAll().pipe( | |
map(posts => PokemonActions.loadPokemonSuccess({ posts })), | |
catchError(message => of(PokemonActions.loadPostsFailed({ message }))) | |
) | |
) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LOCALE_ID, NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { AppComponent } from '../src/app/app.component'; | |
@NgModule({ | |
imports: [ BrowserModule ], | |
declarations: [ AppComponent ], | |
providers: [ { provide: LOCALE_ID, useValue: 'fr' } ], | |
bootstrap: [ AppComponent ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LOCALE_ID, NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { AppComponent } from '../src/app/app.component'; | |
@NgModule({ | |
imports: [ BrowserModule ], | |
declarations: [ AppComponent ], | |
providers: [ { provide: LOCALE_ID, useValue: 'fr' } ], | |
bootstrap: [ AppComponent ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { enableProdMode, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core'; | |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
import { AppModule } from './app/app.module'; | |
import { environment } from './environments/environment'; | |
if (environment.production) { | |
enableProdMode(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { enableProdMode, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core'; | |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
import { AppModule } from './app/app.module'; | |
import { environment } from './environments/environment'; | |
if (environment.production) { | |
enableProdMode(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"architect": { | |
"build": { | |
"builder": "@angular-devkit/build-angular:browser", | |
"options": { ... }, | |
"configurations": { | |
"fr": { | |
"aot": true, | |
"outputPath": "dist/my-project-fr/", | |
"i18nFile": "src/locale/messages.fr.xlf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build": { | |
... | |
"configurations": { | |
... | |
"fr": { | |
"aot": true, | |
"outputPath": "dist/my-project-fr/", | |
"i18nFile": "src/locale/messages.fr.xlf", | |
"i18nFormat": "xlf", | |
"i18nLocale": "fr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build": { | |
... | |
"configurations": { | |
... | |
"fr": { | |
"aot": true, | |
"outputPath": "dist/my-project-fr/", | |
"i18nFile": "src/locale/messages.fr.xlf", | |
"i18nFormat": "xlf", | |
"i18nLocale": "fr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<trans-unit id="972cb0cf3e442f7b1c00d7dab168ac08d6bdf20c" datatype="html"> | |
<source>Updated: <x id="ICU" equiv-text="{minutes, plural, =0 {...} =1 {...} other {...}}"/></source> | |
<target>Mis à jour: <x id="ICU" equiv-text="{minutes, plural, =0 {...} =1 {...} other {...}}"/></target> | |
</trans-unit> | |
<trans-unit id="7151c2e67748b726f0864fc443861d45df21d706" datatype="html"> | |
<source>{VAR_PLURAL, plural, =0 {just now} =1 {one minute ago} other {<x id="INTERPOLATION" equiv-text="{{minutes}}"/> minutes ago by {VAR_SELECT, select, male {male} female {female} other {other} }} }</source> | |
<target>{VAR_PLURAL, plural, =0 {à l'instant} =1 {il y a une minute} other {il y a <x id="INTERPOLATION" equiv-text="{{minutes}}"/> minutes par {VAR_SELECT, select, male {un homme} female {une femme} other {autre} }} }</target> | |
</trans-unit> |