Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit f59faa0

Browse files
Minor adjustments to host locale provider
1 parent 4fa13bb commit f59faa0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

runtime/i18n/host-locale-provider.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ import {
1919
} from './locale-provider';
2020

2121
@Injectable()
22-
export class SkyAppHostLocaleProvider extends SkyAppLocaleProvider {
23-
24-
public static readonly defaultLocale = 'en-US';
22+
export class SkyAppHostLocaleProvider implements SkyAppLocaleProvider {
23+
public get defaultLocale(): string {
24+
return 'en-US';
25+
}
2526

2627
constructor(
2728
private windowRef: SkyAppWindowRef
28-
) {
29-
super();
30-
}
29+
) { }
3130

3231
public getLocaleInfo(): Observable<SkyAppLocaleInfo> {
3332
let locale: string;
@@ -39,7 +38,7 @@ export class SkyAppHostLocaleProvider extends SkyAppLocaleProvider {
3938
locale = acceptLanguage.split(',')[0];
4039
}
4140

42-
locale = locale || SkyAppHostLocaleProvider.defaultLocale;
41+
locale = locale || this.defaultLocale;
4342

4443
return Observable.of({
4544
locale: locale

0 commit comments

Comments
 (0)