UX Overhaul Part 1 (#3047)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
parent
5934d516f3
commit
ff79710ac6
324 changed files with 11589 additions and 4598 deletions
18
UI/Web/src/app/_pipes/writing-style.pipe.ts
Normal file
18
UI/Web/src/app/_pipes/writing-style.pipe.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import {translate} from "@ngneat/transloco";
|
||||
import {WritingStyle} from "../_models/preferences/writing-style";
|
||||
|
||||
@Pipe({
|
||||
name: 'writingStyle',
|
||||
standalone: true
|
||||
})
|
||||
export class WritingStylePipe implements PipeTransform {
|
||||
|
||||
transform(value: WritingStyle): string {
|
||||
switch (value) {
|
||||
case WritingStyle.Horizontal: return translate('preferences.horizontal');
|
||||
case WritingStyle.Vertical: return translate('preferences.vertical');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue