From 0b8a1a6ebe78e12beaad5d8a713abc354836ce28 Mon Sep 17 00:00:00 2001 From: sinedied Date: Sun, 16 Feb 2020 16:11:54 +0100 Subject: [PATCH] fix: i18n language imports --- generators/app/templates/src/app/core/_i18n.service.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/generators/app/templates/src/app/core/_i18n.service.ts b/generators/app/templates/src/app/core/_i18n.service.ts index bf4f4f4a..710e0099 100644 --- a/generators/app/templates/src/app/core/_i18n.service.ts +++ b/generators/app/templates/src/app/core/_i18n.service.ts @@ -3,13 +3,8 @@ import { TranslateService, LangChangeEvent } from '@ngx-translate/core'; import { Subscription } from 'rxjs'; import { Logger } from './logger.service'; -<% if (props.target.includes('electron')) { -%> import enUS from '../../translations/en-US.json'; import frFR from '../../translations/fr-FR.json'; -<% } else { -%> -import * as enUS from '../../translations/en-US.json'; -import * as frFR from '../../translations/fr-FR.json'; -<% } -%> const log = new Logger('I18nService'); const languageKey = 'language';