feat: edit an existing custom type

This commit is contained in:
Florian Sylvain committed 2026-10-20 04:42:50 +02:00
1 parent 083cc9e23e
commit 8e344b2500
57 files changed
+5648 -425

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { formatNumber, t } from '@/i18n'
export function entriesNotice(total: number) {
if (total <= 0) {
return ''
}
return total === 1
? t('1 entry uses this content type. Changes are checked against it when you save.')
: t('{0} entries use this content type. Changes are checked against them when you save.', [
formatNumber(total),
])
}
export function entriesLine(name: string, total: number) {
return total === 1
? t('{0} has 1 entry. Each one is checked against the new fields when you apply.', [name])
: t('{0} has {1} entries. Each one is checked against the new fields when you apply.', [
name,
formatNumber(total),
])
}