From 4d523fda98ff007a28ae110475dfc6aa017c6b72 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Thu, 10 Aug 2017 03:54:10 +0300 Subject: [PATCH] fix(aio): fix compilation error by using the correct type for `providers` --- aio/content/examples/i18n/src/app/i18n-providers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/content/examples/i18n/src/app/i18n-providers.ts b/aio/content/examples/i18n/src/app/i18n-providers.ts index 0e820bbcfd..3c74d0e8e0 100644 --- a/aio/content/examples/i18n/src/app/i18n-providers.ts +++ b/aio/content/examples/i18n/src/app/i18n-providers.ts @@ -1,15 +1,15 @@ // #docplaster // #docregion without-missing-translation -import { TRANSLATIONS, TRANSLATIONS_FORMAT, LOCALE_ID, MissingTranslationStrategy } from '@angular/core'; +import { TRANSLATIONS, TRANSLATIONS_FORMAT, LOCALE_ID, MissingTranslationStrategy, StaticProvider } from '@angular/core'; import { CompilerConfig } from '@angular/compiler'; -export function getTranslationProviders(): Promise { +export function getTranslationProviders(): Promise { // Get the locale id from the global const locale = document['locale'] as string; // return no providers if fail to get translation file for locale - const noProviders: Object[] = []; + const noProviders: StaticProvider[] = []; // No locale or U.S. English: no translation providers if (!locale || locale === 'en-US') {