mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
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
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import {makeT} from 'app/client/lib/localization';
|
||||
import {DataRowModel} from 'app/client/models/DataRowModel';
|
||||
import {ViewFieldRec} from 'app/client/models/entities/ViewFieldRec';
|
||||
import {cssLabel, cssRow} from 'app/client/ui/RightPanelStyles';
|
||||
@@ -8,6 +9,9 @@ import {NTextBox} from 'app/client/widgets/NTextBox';
|
||||
import {isFullReferencingType, isVersions} from 'app/common/gristTypes';
|
||||
import {Computed, dom, styled} from 'grainjs';
|
||||
|
||||
|
||||
const t = makeT('Reference');
|
||||
|
||||
/**
|
||||
* Reference - The widget for displaying references to another table's records.
|
||||
*/
|
||||
@@ -33,14 +37,14 @@ export class Reference extends NTextBox {
|
||||
icon: 'FieldColumn',
|
||||
disabled: isFullReferencingType(use(col.type)) || use(col.isTransforming)
|
||||
}))
|
||||
.concat([{label: 'Row ID', value: 0, icon: 'FieldColumn'}]);
|
||||
.concat([{label: t('Row ID'), value: 0, icon: 'FieldColumn'}]);
|
||||
});
|
||||
}
|
||||
|
||||
public buildConfigDom() {
|
||||
return [
|
||||
this.buildTransformConfigDom(),
|
||||
cssLabel('CELL FORMAT'),
|
||||
cssLabel(t('CELL FORMAT')),
|
||||
super.buildConfigDom()
|
||||
];
|
||||
}
|
||||
@@ -48,7 +52,7 @@ export class Reference extends NTextBox {
|
||||
public buildTransformConfigDom() {
|
||||
const disabled = Computed.create(null, use => use(this.field.config.multiselect));
|
||||
return [
|
||||
cssLabel('SHOW COLUMN'),
|
||||
cssLabel(t('SHOW COLUMN')),
|
||||
cssRow(
|
||||
dom.autoDispose(disabled),
|
||||
select(this._visibleColRef, this._validCols, {
|
||||
|
||||
Reference in New Issue
Block a user