mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
ESLint: fix dangling commas
This commit is contained in:
@@ -15,7 +15,7 @@ export class TranslateBrowserLoader implements TranslateLoader {
|
||||
protected transferState: TransferState,
|
||||
protected http: HttpClient,
|
||||
protected prefix?: string,
|
||||
protected suffix?: string
|
||||
protected suffix?: string,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export class TranslateBrowserLoader implements TranslateLoader {
|
||||
// If they're not available on the transfer state (e.g. when running in dev mode), retrieve
|
||||
// them using HttpClient
|
||||
return this.http.get('' + this.prefix + lang + this.suffix, { responseType: 'text' }).pipe(
|
||||
map((json: any) => JSON.parse(json))
|
||||
map((json: any) => JSON.parse(json)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@ export class TranslateServerLoader implements TranslateLoader {
|
||||
constructor(
|
||||
protected transferState: TransferState,
|
||||
protected prefix: string = 'dist/assets/i18n/',
|
||||
protected suffix: string = '.json'
|
||||
protected suffix: string = '.json',
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ export class TranslateServerLoader implements TranslateLoader {
|
||||
protected storeInTransferState(lang: string, messages) {
|
||||
const prevState = this.transferState.get<NgxTranslateState>(NGX_TRANSLATE_STATE, {});
|
||||
const nextState = Object.assign({}, prevState, {
|
||||
[lang]: messages
|
||||
[lang]: messages,
|
||||
});
|
||||
this.transferState.set(NGX_TRANSLATE_STATE, nextState);
|
||||
}
|
||||
|
Reference in New Issue
Block a user