Change translation keys for ui directory

This commit is contained in:
Louis Delbosc
2022-12-06 14:57:29 +01:00
parent 24a656406e
commit b76fe50bf9
42 changed files with 354 additions and 354 deletions

View File

@@ -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?")
);
}
}