diff --git a/src/abstractions/i18n.service.ts b/src/abstractions/i18n.service.ts index f57783b474..fa2019202c 100644 --- a/src/abstractions/i18n.service.ts +++ b/src/abstractions/i18n.service.ts @@ -1,5 +1,6 @@ export abstract class I18nService { locale: string; + supportedTranslationLocales: string[]; translationLocale: string; collator: Intl.Collator; t: (id: string, p1?: string, p2?: string, p3?: string) => string; diff --git a/src/services/i18n.service.ts b/src/services/i18n.service.ts index 9b9aaea68f..41609ce602 100644 --- a/src/services/i18n.service.ts +++ b/src/services/i18n.service.ts @@ -2,11 +2,11 @@ import { I18nService as I18nServiceAbstraction } from '../abstractions/i18n.serv export class I18nService implements I18nServiceAbstraction { locale: string; + // First locale is the default (English) + supportedTranslationLocales: string[] = ['en']; translationLocale: string; collator: Intl.Collator; - // First locale is the default (English) - protected supportedTranslationLocales: string[] = ['en']; protected inited: boolean; protected defaultMessages: any = {}; protected localeMessages: any = {};