refactor: Spelling from translatEr to translatOr
MODIFY
src/app/components/account/account.component.ts
src/app/components/account/account.component.ts
@@ -10,7 +10,7 @@ import {TranslateService} from '@ngx-translate/core';
export class AccountComponent implements OnInit {
constructor(private heroService: HeroService,
- private translater: TranslateService) { }
+ private translator: TranslateService) { }
ngOnInit(): void {
this.setUpHero();
@@ -18,8 +18,8 @@ export class AccountComponent implements OnInit {
private setUpHero(){
this.heroService.setUpHero({
- title: this.translater.instant('ACCOUNT.TITLE'),
- subtitle: this.translater.instant('ACCOUNT.SUBTITLE')
+ title: this.translator.instant('ACCOUNT.TITLE'),
+ subtitle: this.translator.instant('ACCOUNT.SUBTITLE')
});
}
}

MODIFY
src/app/components/home/home.component.ts
src/app/components/home/home.component.ts
@@ -15,13 +15,13 @@ export class HomeComponent implements OnInit {
constructor(private configService: ConfigService,
private heroService: HeroService,
- private translater: TranslateService) {
+ private translator: TranslateService) {
this.hero = configService.getHero();
}
ngOnInit(): void {
- this.hero.title = this.translater.instant(this.configService.config.hero.title);
- this.hero.subtitle = this.translater.instant(this.configService.config.hero.subtitle);
+ this.hero.title = this.translator.instant(this.configService.config.hero.title);
+ this.hero.subtitle = this.translator.instant(this.configService.config.hero.subtitle);
this.setUpHero();
}

MODIFY
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.ts
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.ts
@@ -67,7 +67,7 @@ export class MarketplaceSignupStepperComponent implements OnInit {
constructor(private heroService: HeroService,
private apiService: ApiService,
private route: ActivatedRoute,
- private translater: TranslateService) { }
+ private translator: TranslateService) { }
ngOnInit(): void {
this.setUpHero();
@@ -76,7 +76,7 @@ export class MarketplaceSignupStepperComponent implements OnInit {
private setUpHero() {
this.heroService.setUpHero({
- title: this.translater.instant('API_SIGN_UP.TITLE')
+ title: this.translator.instant('API_SIGN_UP.TITLE')
});
}

MODIFY
src/app/components/marketplace/marketplace.component.ts
src/app/components/marketplace/marketplace.component.ts
@@ -10,7 +10,7 @@ import {TranslateService} from '@ngx-translate/core';
export class MarketplaceComponent implements OnInit {
constructor(private heroService: HeroService,
- private translater: TranslateService) { }
+ private translator: TranslateService) { }
ngOnInit(): void {
this.initHero();
@@ -18,8 +18,8 @@ export class MarketplaceComponent implements OnInit {
private initHero(){
this.heroService.setUpHero({
- title: this.translater.instant('MPLACE.TITLE'),
- subtitle: this.translater.instant('MPLACE.SUBTITLE')
+ title: this.translator.instant('MPLACE.TITLE'),
+ subtitle: this.translator.instant('MPLACE.SUBTITLE')
});
}
}

MODIFY
src/app/components/my-apps/my-apps.component.ts
src/app/components/my-apps/my-apps.component.ts
@@ -10,7 +10,7 @@ import {TranslateService} from '@ngx-translate/core';
export class MyAppsComponent implements OnInit {
constructor(private heroService: HeroService,
- private translater: TranslateService) { }
+ private translator: TranslateService) { }
ngOnInit(): void {
this.setUpHero();
@@ -18,8 +18,8 @@ export class MyAppsComponent implements OnInit {
private setUpHero(){
this.heroService.setUpHero({
- title: this.translater.instant('APPS.TITLE'),
- subtitle: this.translater.instant('APPS.SUBTITLE')
+ title: this.translator.instant('APPS.TITLE'),
+ subtitle: this.translator.instant('APPS.SUBTITLE')
});
}

MODIFY
src/app/services/footer/footer.service.ts
src/app/services/footer/footer.service.ts
@@ -18,8 +18,7 @@ export class FooterService {
}
]
- constructor(private configService: ConfigService,
- private translater: TranslateService) {
+ constructor(private configService: ConfigService) {
this.footer = this.initLinks();
}

MODIFY
src/app/services/initializer/initializer.service.ts
src/app/services/initializer/initializer.service.ts
@@ -6,7 +6,7 @@ import {TranslateService} from '@ngx-translate/core';
})
export class InitializerService {
- constructor(private translater: TranslateService) { }
+ constructor(private translator: TranslateService) { }
/**
* The functions calls the ngx-translation service to load a language. If the language file can not be found the fallback language
@@ -15,11 +15,11 @@ export class InitializerService {
*/
initLanguage(language: string): Promise<void> {
return new Promise((resolve, reject) => {
- this.translater.use(language).toPromise().then(() => {
+ this.translator.use(language).toPromise().then(() => {
resolve();
}).catch(() => {
console.warn('Could not load language: ' + language + '\nDefault language \'en\' will be used');
- this.translater.use('en').toPromise().then(() => {
+ this.translator.use('en').toPromise().then(() => {
resolve();
});
});

MODIFY
src/app/services/navigation/navigation.service.ts
src/app/services/navigation/navigation.service.ts
@@ -11,15 +11,15 @@ export class NavigationService {
links: ILink[] = [
{
- name: this.translater.instant('MPLACE.TITLE'),
+ name: this.translator.instant('MPLACE.TITLE'),
link: 'marketplace',
openInNewTab: false
}, {
- name: this.translater.instant('APPS.TITLE'),
+ name: this.translator.instant('APPS.TITLE'),
link: 'applications',
openInNewTab: false
}, {
- name: this.translater.instant('ACCOUNT.TITLE'),
+ name: this.translator.instant('ACCOUNT.TITLE'),
link: 'account',
openInNewTab: false
}
@@ -28,7 +28,7 @@ export class NavigationService {
navigationChanged: EventEmitter<INavigation> = new EventEmitter<INavigation>();
constructor(private configService: ConfigService,
- private translater: TranslateService) {
+ private translator: TranslateService) {
this.navigation = this.initLinks();
}

refactor: Spelling from translatEr to translatOr