mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Change translation keys for ui directory
This commit is contained in:
@@ -55,7 +55,7 @@ export class ApiKey extends Disposable {
|
||||
},
|
||||
dom.attr('type', (use) => use(this._isHidden) ? 'password' : 'text'),
|
||||
testId('key'),
|
||||
{title: t('ClickToShow')},
|
||||
{title: t("Click to show")},
|
||||
dom.on('click', (_ev, el) => {
|
||||
this._isHidden.set(false);
|
||||
setTimeout(() => el.select(), 0);
|
||||
@@ -67,7 +67,7 @@ export class ApiKey extends Disposable {
|
||||
this._inputArgs
|
||||
),
|
||||
cssTextBtn(
|
||||
cssTextBtnIcon('Remove'), t('Remove'),
|
||||
cssTextBtnIcon('Remove'), t("Remove"),
|
||||
dom.on('click', () => this._showRemoveKeyModal()),
|
||||
testId('delete'),
|
||||
dom.boolAttr('disabled', (use) => use(this._loading) || this._anonymous)
|
||||
@@ -76,9 +76,9 @@ export class ApiKey extends Disposable {
|
||||
description(this._getDescription(), testId('description')),
|
||||
)),
|
||||
dom.maybe((use) => !(use(this._apiKey) || this._anonymous), () => [
|
||||
basicButton(t('Create'), dom.on('click', () => this._onCreate()), testId('create'),
|
||||
basicButton(t("Create"), dom.on('click', () => this._onCreate()), testId('create'),
|
||||
dom.boolAttr('disabled', this._loading)),
|
||||
description(t('ByGenerating'), testId('description')),
|
||||
description(t("By generating an API key, you will be able to make API calls for your own account."), testId('description')),
|
||||
]),
|
||||
);
|
||||
}
|
||||
@@ -110,9 +110,9 @@ export class ApiKey extends Disposable {
|
||||
|
||||
private _showRemoveKeyModal(): void {
|
||||
confirmModal(
|
||||
t('RemoveAPIKey'), t('Remove'),
|
||||
t("Remove API Key"), t("Remove"),
|
||||
() => this._onDelete(),
|
||||
t("AboutToDeleteAPIKey")
|
||||
t("You're about to delete an API key. This will cause all future requests using this API key to be rejected. Do you still want to delete?")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user