Skip to content

Commit df7fe29

Browse files
biesbjergocombe
authored andcommitted
fix(TranslateService): make TranslateParser public
Fixes #347
1 parent 807cb15 commit df7fe29

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/translate.service.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ export interface LangChangeEvent {
2424
export interface MissingTranslationHandlerParams {
2525
/**
2626
* the key that's missing in translation files
27-
*
27+
*
2828
* @type {string}
2929
*/
3030
key: string;
3131

3232
/**
3333
* an instance of the service that was unable to translate the key.
34-
*
34+
*
3535
* @type {TranslateService}
3636
*/
3737
translateService: TranslateService;
3838

3939
/**
4040
* interpolation params that were passed along for translating the given key.
41-
*
41+
*
4242
* @type {Object}
4343
*/
4444
interpolateParams?: Object;
@@ -52,7 +52,7 @@ declare const window: Window;
5252
export abstract class MissingTranslationHandler {
5353
/**
5454
* A function that handles missing translations.
55-
*
55+
*
5656
* @abstract
5757
* @param {MissingTranslationHandlerParams} params context for resolving a missing translation
5858
* @returns {any} a value or an observable
@@ -118,8 +118,8 @@ export class TranslateService {
118118
* @param missingTranslationHandler A handler for missing translations.
119119
*/
120120
constructor(
121-
public currentLoader: TranslateLoader,
122-
private parser: TranslateParser,
121+
public currentLoader: TranslateLoader,
122+
public parser: TranslateParser,
123123
@Optional() private missingTranslationHandler: MissingTranslationHandler
124124
) {}
125125

@@ -136,7 +136,7 @@ export class TranslateService {
136136
* @returns string
137137
*/
138138
public getDefaultLang(): string {
139-
return this.defaultLang;
139+
return this.defaultLang;
140140
}
141141

142142
/**

0 commit comments

Comments
 (0)