File

src/client/app/modules/i18n/testing/mocks/ng2-config-multilang.mock.ts

Index

Methods

Methods

getSettings
getSettings(group: string, key: string)
Returns : any
init
init()
Returns : any
export class ConfigMockMultilang {
  init(): any {
    return null;
  }

  getSettings(group?: string, key?: string): any {
    return {
      i18n: {
        defaultLanguage: {
          code: 'en',
          title: 'English'
        },
        availableLanguages: [
          { code: 'en', title: 'English' },
          { code: 'es', title: 'Spanish' },
          { code: 'fr', title: 'French' },
          { code: 'ru', title: 'Russian' },
          { code: 'bg', title: 'Bulgarian' }
        ]
      },
      logging: {
        DEBUG: {
          LEVEL_1: false,
          LEVEL_2: false,
          LEVEL_3: false,
          LEVEL_4: false
        }
      }
    };
  }
}

results matching ""

    No results matching ""