mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
4befca1c92
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
17 lines
545 B
TypeScript
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'));
|
|
}
|
|
}
|