aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/config/translation.service.config.factory.ts
blob: c435e45defe3cdce7b3648033b6d0313bac94007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { ITranslateServiceConfig } from "../shared/translator/translate.service.config";

declare const __ENV__:string;

export function getTranslationServiceConfig() : ITranslateServiceConfig {
    const pathPrefix = (__ENV__ === 'prod') ? 'sdc1/' : '';
    return {
        filePrefix: pathPrefix + 'assets/languages/',
        fileSuffix: '.json',
        allowedLanguages: ['en_US'],
        defaultLanguage: 'en_US'
    };
}