summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkDialog.vue
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-01-21 13:11:23 +0100
committerMarie <marie@kaifa.ch>2024-01-21 13:11:23 +0100
commitdb012fc8c3c88f8676b8a0c13347d0257df85eb2 (patch)
treee9118b604b9ea027369cd327837bb59843de6f83 /packages/frontend/src/components/MkDialog.vue
parentmerge: fix make sure that signToActivityPubGet defaults to true (#352) (diff)
parentenhance(frontend): 季節に応じた画面の演出を南半球に対応さ... (diff)
downloadsharkey-db012fc8c3c88f8676b8a0c13347d0257df85eb2.tar.gz
sharkey-db012fc8c3c88f8676b8a0c13347d0257df85eb2.tar.bz2
sharkey-db012fc8c3c88f8676b8a0c13347d0257df85eb2.zip
merge: upstream (1)
Diffstat (limited to 'packages/frontend/src/components/MkDialog.vue')
-rw-r--r--packages/frontend/src/components/MkDialog.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkDialog.vue b/packages/frontend/src/components/MkDialog.vue
index 2c0f6a4d78..83f5041a46 100644
--- a/packages/frontend/src/components/MkDialog.vue
+++ b/packages/frontend/src/components/MkDialog.vue
@@ -30,8 +30,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkInput v-if="input" v-model="inputValue" autofocus :type="input.type || 'text'" :placeholder="input.placeholder || undefined" :autocomplete="input.autocomplete" @keydown="onInputKeydown">
<template v-if="input.type === 'password'" #prefix><i class="ph-lock ph-bold ph-lg"></i></template>
<template #caption>
- <span v-if="okButtonDisabledReason === 'charactersExceeded'" v-text="i18n.t('_dialog.charactersExceeded', { current: (inputValue as string).length, max: input.maxLength ?? 'NaN' })"/>
- <span v-else-if="okButtonDisabledReason === 'charactersBelow'" v-text="i18n.t('_dialog.charactersBelow', { current: (inputValue as string).length, min: input.minLength ?? 'NaN' })"/>
+ <span v-if="okButtonDisabledReason === 'charactersExceeded'" v-text="i18n.tsx._dialog.charactersExceeded({ current: (inputValue as string).length, max: input.maxLength ?? 'NaN' })"/>
+ <span v-else-if="okButtonDisabledReason === 'charactersBelow'" v-text="i18n.tsx._dialog.charactersBelow({ current: (inputValue as string).length, min: input.minLength ?? 'NaN' })"/>
</template>
</MkInput>
<MkSelect v-if="select" v-model="selectedValue" autofocus>