I don't output any element Updated {minutes, plural, =0 {just now} =1 {one minute ago} other {{{minutes}} minutes ago}}
({{minutes}})
The author is {gender, select, male {male} female {female} other {other}}
Updated: {minutes, plural,
=0 {just now}
=1 {one minute ago}
other {{{minutes}} minutes ago by {gender, select, male {male} female {female} other {other}}}}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
src/main.ts
import { enableProdMode } 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();
}
platformBrowserDynamic().bootstrapModule(AppModule);
src/locale/messages.fr.xlf
Hello i18n!An introduction header for this sampleUser welcomeHello i18n!Bonjour i18n !An introduction header for this sampleUser welcomeI don't output any elementJe n'affiche aucun élémentAngular logoLogo d'Angular{VAR_PLURAL, plural, =0 {just now} =1 {one minute ago} other { minutes ago} }{VAR_PLURAL, plural, =0 {à l'instant} =1 {il y a une minute} other {il y a minutes} }The author is L'auteur est {VAR_SELECT, select, male {male} female {female} other {other} }{VAR_SELECT, select, male {un homme} female {une femme} other {autre} }Updated: Mis à jour: {VAR_PLURAL, plural, =0 {just now} =1 {one minute ago} other { minutes ago by {VAR_SELECT, select, male {male} female {female} other {other} }} }{VAR_PLURAL, plural, =0 {à l'instant} =1 {il y a une minute} other {il y a minutes par {VAR_SELECT, select, male {un homme} female {une femme} other {autre} }} }HelloBonjour