Files
2026-11-23 14:16:00 +00:00

14 lines
336 B
TypeScript

import i18next from 'i18next';
export const validateMountName = (value: string): string | undefined => {
if (value.length < 2) {
return i18next.t('A name must be at least 2 characters.');
}
if (value.length > 64) {
return i18next.t('A name must not exceed 64 characters.');
}
return undefined;
};