make supportedTranslationLocales public

This commit is contained in:
Kyle Spearrin 2018-04-25 08:26:02 -04:00
parent 119a9ba6bc
commit 0ad2c9d667
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
export abstract class I18nService { export abstract class I18nService {
locale: string; locale: string;
supportedTranslationLocales: string[];
translationLocale: string; translationLocale: string;
collator: Intl.Collator; collator: Intl.Collator;
t: (id: string, p1?: string, p2?: string, p3?: string) => string; t: (id: string, p1?: string, p2?: string, p3?: string) => string;

View File

@ -2,11 +2,11 @@ import { I18nService as I18nServiceAbstraction } from '../abstractions/i18n.serv
export class I18nService implements I18nServiceAbstraction { export class I18nService implements I18nServiceAbstraction {
locale: string; locale: string;
// First locale is the default (English)
supportedTranslationLocales: string[] = ['en'];
translationLocale: string; translationLocale: string;
collator: Intl.Collator; collator: Intl.Collator;
// First locale is the default (English)
protected supportedTranslationLocales: string[] = ['en'];
protected inited: boolean; protected inited: boolean;
protected defaultMessages: any = {}; protected defaultMessages: any = {};
protected localeMessages: any = {}; protected localeMessages: any = {};