mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Remove prefix from translations keys
This commit is contained in:
@@ -47,7 +47,7 @@ const state = {
|
||||
DEFAULT: 'default'
|
||||
};
|
||||
|
||||
const t = makeT('components.ActionLog');
|
||||
const t = makeT('ActionLog');
|
||||
|
||||
export class ActionLog extends dispose.Disposable implements IDomComponent {
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ const DONUT_DEFAULT_TEXT_SIZE = 24;
|
||||
|
||||
const testId = makeTestId('test-chart-');
|
||||
|
||||
const t = makeT('components.ChartView');
|
||||
const t = makeT('ChartView');
|
||||
|
||||
function isPieLike(chartType: string) {
|
||||
return ['pie', 'donut'].includes(chartType);
|
||||
|
||||
@@ -9,7 +9,7 @@ import {makeT} from 'app/client/lib/localization';
|
||||
const hljs = require('highlight.js/lib/core');
|
||||
hljs.registerLanguage('python', require('highlight.js/lib/languages/python'));
|
||||
|
||||
const t = makeT('components.CodeEditorPanel');
|
||||
const t = makeT('CodeEditorPanel');
|
||||
|
||||
export class CodeEditorPanel extends DisposableWithEvents {
|
||||
private _schema = Observable.create(this, '');
|
||||
|
||||
@@ -16,7 +16,7 @@ import {makeT} from 'app/client/lib/localization';
|
||||
|
||||
const testId = makeTestId('test-raw-data-');
|
||||
|
||||
const t = makeT('components.DataTables');
|
||||
const t = makeT('DataTables');
|
||||
|
||||
export class DataTables extends Disposable {
|
||||
private _tables: Observable<TableRec[]>;
|
||||
|
||||
@@ -13,7 +13,7 @@ import {canUpgradeOrg} from 'app/common/roles';
|
||||
import {Computed, Disposable, dom, DomContents, DomElementArg, makeTestId, styled} from 'grainjs';
|
||||
import {makeT} from 'app/client/lib/localization';
|
||||
|
||||
const t = makeT('components.DocumentUsage');
|
||||
const t = makeT('DocumentUsage');
|
||||
|
||||
const testId = makeTestId('test-doc-usage-');
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ import * as ko from 'knockout';
|
||||
import cloneDeepWith = require('lodash/cloneDeepWith');
|
||||
import isEqual = require('lodash/isEqual');
|
||||
|
||||
const t = makeT('components.GristDoc');
|
||||
const t = makeT('GristDoc');
|
||||
|
||||
const G = getBrowserGlobals('document', 'window');
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import {labeledSquareCheckbox} from 'app/client/ui2018/checkbox';
|
||||
import {ACCESS_DENIED, AUTH_INTERRUPTED, canReadPrivateFiles, getGoogleCodeForReading} from 'app/client/ui/googleAuth';
|
||||
import debounce = require('lodash/debounce');
|
||||
|
||||
const t = makeT('components.Importer');
|
||||
const t = makeT('Importer');
|
||||
|
||||
|
||||
// We expect a function for creating the preview GridView, to avoid the need to require the
|
||||
|
||||
@@ -7,7 +7,7 @@ import { PluginInstance } from 'app/common/PluginInstance';
|
||||
import { RenderTarget } from 'app/plugin/RenderOptions';
|
||||
import { Disposable, dom, DomContents, Observable, styled } from 'grainjs';
|
||||
|
||||
const t = makeT('components.PluginScreen');
|
||||
const t = makeT('PluginScreen');
|
||||
|
||||
/**
|
||||
* Rendering options for the PluginScreen modal.
|
||||
|
||||
@@ -41,7 +41,7 @@ var {menu} = require('../ui2018/menus');
|
||||
var {testId} = require('app/client/ui2018/cssVars');
|
||||
var {contextMenu} = require('app/client/ui/contextMenu');
|
||||
|
||||
const t = makeT('components.RecordLayout');
|
||||
const t = makeT('RecordLayout');
|
||||
|
||||
/**
|
||||
* Construct a RecordLayout.
|
||||
|
||||
@@ -6,7 +6,7 @@ var {makeT} = require('app/client/lib/localization');
|
||||
var commands = require('./commands');
|
||||
var LayoutEditor = require('./LayoutEditor');
|
||||
|
||||
const t = makeT('components.RecordLayoutEditor');
|
||||
const t = makeT('RecordLayoutEditor');
|
||||
const {basicButton, cssButton, primaryButton} = require('app/client/ui2018/buttons');
|
||||
const {icon} = require('app/client/ui2018/icons');
|
||||
const {menu, menuDivider, menuItem} = require('app/client/ui2018/menus');
|
||||
|
||||
@@ -14,7 +14,7 @@ import ko from 'knockout';
|
||||
import {menu, menuItem} from 'popweasel';
|
||||
import {makeT} from 'app/client/lib/localization';
|
||||
|
||||
const t = makeT('components.RefSelect');
|
||||
const t = makeT('RefSelect');
|
||||
|
||||
interface Item {
|
||||
label: string;
|
||||
|
||||
@@ -16,7 +16,7 @@ import ko from 'knockout';
|
||||
import {Computed, Disposable, dom, makeTestId, Observable, styled, subscribe} from 'grainjs';
|
||||
import {makeT} from 'app/client/lib/localization';
|
||||
|
||||
const t = makeT('components.SelectionSummary');
|
||||
const t = makeT('SelectionSummary');
|
||||
|
||||
/**
|
||||
* A beginning and end index for a range of columns or rows.
|
||||
|
||||
@@ -19,7 +19,7 @@ import {UserAction} from 'app/common/DocActions';
|
||||
import {Computed, dom, fromKo, Observable} from 'grainjs';
|
||||
import {makeT} from 'app/client/lib/localization';
|
||||
|
||||
const t = makeT('components.TypeTransformation');
|
||||
const t = makeT('TypeTransformation');
|
||||
|
||||
// To simplify diff (avoid rearranging methods to satisfy private/public order).
|
||||
/* eslint-disable @typescript-eslint/member-ordering */
|
||||
|
||||
@@ -7,7 +7,7 @@ var kf = require('../lib/koForm');
|
||||
var AceEditor = require('./AceEditor');
|
||||
var {makeT} = require('app/client/lib/localization');
|
||||
|
||||
const t = makeT('components.ValidationPanel');
|
||||
const t = makeT('ValidationPanel');
|
||||
|
||||
/**
|
||||
* Document level configuration settings.
|
||||
|
||||
@@ -19,7 +19,7 @@ const {makeT} = require('app/client/lib/localization');
|
||||
|
||||
const testId = makeTestId('test-vconfigtab-');
|
||||
|
||||
const t = makeT('components.ViewConfigTab');
|
||||
const t = makeT('ViewConfigTab');
|
||||
|
||||
/**
|
||||
* Helper class that combines one ViewSection's data for building dom.
|
||||
|
||||
@@ -15,7 +15,7 @@ import zip = require('lodash/zip');
|
||||
import zipObject = require('lodash/zipObject');
|
||||
import {makeT} from 'app/client/lib/localization';
|
||||
|
||||
const t = makeT('components.duplicatePage');
|
||||
const t = makeT('duplicatePage');
|
||||
|
||||
// Duplicate page with pageId. Starts by prompting user for a new name.
|
||||
export async function duplicatePage(gristDoc: GristDoc, pageId: number) {
|
||||
|
||||
Reference in New Issue
Block a user