Skip to content

Commit cc86ad7

Browse files
committed
fix: Move config interface defintion
1 parent f50c9b2 commit cc86ad7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "localize-router-http-loader",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "A loader for localize-router that loads config using Http",
55
"scripts": {
66
"clean": "rimraf bundles coverage src/**/*.d.ts src/**/*.metadata.json src/**/*.js tests/**/*.d.ts tests/**/*.metadata.json tests/**/*.js index.d.ts index.metadata.json index.js",

src/http-loader.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
import { LocalizeParser, LocalizeRouterSettings, ILocalizeRouterParserConfig } from 'localize-router';
1+
import { LocalizeParser, LocalizeRouterSettings } from 'localize-router';
22
import { TranslateService } from '@ngx-translate/core';
33
import { Http, Response } from '@angular/http';
44
import { Routes } from '@angular/router';
55
import { Location } from '@angular/common';
66

7+
/**
8+
* Config interface
9+
*/
10+
export interface ILocalizeRouterParserConfig {
11+
locales: Array<string>;
12+
prefix?: string;
13+
}
14+
715
export class LocalizeRouterHttpLoader extends LocalizeParser {
816
/**
917
* CTOR

0 commit comments

Comments
 (0)