gristlabs_grist-core/app/client/widgets/HyperLinkEditor.ts
Camille 4befca1c92 trad: make the widgets and the Welcome Tour translatable
trad: make the widgets and the Welcome Tour translatable

feat(translation): create automatisation for synchronize key in other locals than en

trad: add french translations

fix(trad): remove all useless code

fix(trad): convert tab to space indentation

fix(trad): add line to english trads
2023-01-24 13:47:09 +01:00

17 lines
545 B
TypeScript

import {makeT} from 'app/client/lib/localization';
import {FieldOptions} from 'app/client/widgets/NewBaseEditor';
import {NTextEditor} from 'app/client/widgets/NTextEditor';
const t = makeT('HyperLinkEditor');
/**
* HyperLinkEditor - Is the same NTextEditor but with some placeholder text to help explain
* to the user how links should be formatted.
*/
export class HyperLinkEditor extends NTextEditor {
constructor(options: FieldOptions) {
super(options);
this.textInput.setAttribute('placeholder', t('[link label] url'));
}
}