1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Move invalid user message into globalization

This commit is contained in:
SHestres 2024-12-18 19:54:32 +00:00
parent 6f2adbcc73
commit 51c4070879
3 changed files with 3 additions and 2 deletions

View file

@ -205,7 +205,7 @@ const UserNew = () => {
type='text'
id='txtUsername'
label='LabelName'
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: 'Username must not be empty and contain only numbers, letters, spaces, or the following symbols -\'._@+' }}
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: globalize.translate('MessageInvalidUsernameFormat') }}
options={'required'}
/>
</div>