Skip to content

Commit c7edaf0

Browse files
authored
feat(translate): added getDefaultLang method
2 parents 850ea51 + ce07a48 commit c7edaf0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/translate.service.ts

+8
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ export class TranslateService {
104104
this.defaultLang = lang;
105105
}
106106

107+
/**
108+
* Gets the default language used
109+
* @returns string
110+
*/
111+
public getDefaultLang(): string {
112+
return this.defaultLang;
113+
}
114+
107115
/**
108116
* Changes the lang currently used
109117
* @param lang

0 commit comments

Comments
 (0)