diff --git a/src/app/app.component.html b/src/app/app.component.html index f32b5d75..fba0c0fa 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -4,17 +4,18 @@ Frama date - - Ceci est une démo - - - {{"config.demo"|translate}} - - - Updated {minutes, plural, =0 {just now} =1 {one minute ago} other {{{minutes}} minutes ago}} - - + +
+
+ + +
+

Title

+
+ {{ 'Intro' | translate:user }} +
+
@@ -22,13 +23,3 @@ -
-
- - -
-

Title

-
- {{ 'Intro' | translate:user }} -
-
diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 5feaf6f2..6f6a2080 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -21,6 +21,7 @@ import {EndConfirmationComponent} from './pages/end-confirmation/end-confirmatio import {CreateOrRetrieveComponent} from './pages/create-or-retrieve/create-or-retrieve.component'; import {CalendarComponent} from './calendar/calendar.component'; import localeFr from '@angular/common/locales/fr'; +import localeEn from '@angular/common/locales/en'; import {VotingSummaryComponent} from './pages/voting-summary/voting-summary.component'; import {VotingGraphComponent} from './pages/voting-graph/voting-graph.component'; import {VotingChoiceComponent} from './pages/voting-choice/voting-choice.component'; @@ -43,6 +44,7 @@ export class MyMissingTranslationHandler implements MissingTranslationHandler { } registerLocaleData(localeFr, 'fr'); +registerLocaleData(localeEn, 'en'); export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http); @@ -80,7 +82,7 @@ export function HttpLoaderFactory(http: HttpClient) { provide: MissingTranslationHandler, useClass: MyMissingTranslationHandler, }, - useDefaultLang: false, + // useDefaultLang: false, loader: { provide: TranslateLoader, useFactory: HttpLoaderFactory, diff --git a/src/app/debugger/debugger.component.html b/src/app/debugger/debugger.component.html index 5b504209..7ebaa11c 100644 --- a/src/app/debugger/debugger.component.html +++ b/src/app/debugger/debugger.component.html @@ -4,6 +4,9 @@

infos de debug

+ + {{"config.demo"|translate}} + - - Choix cornélien syncronisé: - - - - -