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:
parent
6f2adbcc73
commit
51c4070879
3 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue