mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 11:50:31 +00:00
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
import { Transformer } from '../Transformer/Transformer';
|
|
import { View } from './models/View.model';
|
|
|
|
export class GetResourceViewTransformer extends Transformer {
|
|
public includeAttributes = (): string[] => {
|
|
return ['name'];
|
|
};
|
|
|
|
name(view: View) {
|
|
return this.context.i18n.t(view.name);
|
|
}
|
|
}
|