add lib translate texts

This commit is contained in:
Tykayn 2025-08-07 16:06:25 +02:00 committed by tykayn
parent fc4d89f77e
commit 45a36f4736
23 changed files with 298 additions and 14 deletions

View file

@ -0,0 +1,19 @@
import { Component } from '@angular/core';
import {FormsModule} from '@angular/forms';
@Component({
selector: 'lib-translate-texts',
imports: [
FormsModule
],
templateUrl: './translate-texts.html',
styleUrl: './translate-texts.css'
})
export class TranslateTexts {
public fromText : string = ''
public toText : 'fromText' | 'toText' | '' = ''
emptyText(someText: 'fromText' | 'toText'){
this[someText] = '';
}
}