1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/src/frontend/app/model/backendtext.service.ts

27 lines
829 B
TypeScript
Raw Normal View History

2019-12-29 17:24:47 +08:00
import {Injectable} from '@angular/core';
import {I18n} from '@ngx-translate/i18n-polyfill';
import {backendText, backendTexts} from '../../../common/BackendTexts';
@Injectable()
export class BackendtextService {
constructor(private i18n: I18n) {
}
public get(id: backendText): string {
switch (id) {
case backendTexts.sizeToGenerate.name:
return this.i18n('Size to generate');
case backendTexts.sizeToGenerate.description:
return this.i18n('These thumbnails will be generated. The list should be a subset of the enabled thumbnail sizes');
case backendTexts.indexedFilesOnly.name:
return this.i18n('Indexed only');
case backendTexts.indexedFilesOnly.description:
return this.i18n('Only checks indexed files.');
default:
return null;
}
}
}