mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Changing domT to a default translation function for browser
This commit is contained in:
@@ -3,7 +3,7 @@ import {icon} from 'app/client/ui2018/icons';
|
||||
import {dom, DomElementArg, Observable, styled} from "grainjs";
|
||||
import {t} from 'app/client/lib/localization';
|
||||
|
||||
const translate = (x: string, args?: any): string => t(`AddNewButton.${x}`, args);
|
||||
const translate = (x: string, args?: any) => t(`AddNewButton.${x}`, args);
|
||||
|
||||
export function addNewButton(isOpen: Observable<boolean> | boolean = true, ...args: DomElementArg[]) {
|
||||
return cssAddNewButton(
|
||||
|
||||
Reference in New Issue
Block a user