Skip to content

Commit

Permalink
Allow entering a maximum of 5 characters for a language code instead …
Browse files Browse the repository at this point in the history
…of 2, so that a locale can be used. (eg en_GB or nl-BE)
  • Loading branch information
tim committed Nov 28, 2024
1 parent 736d14c commit 411dba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/Filament/Resources/LanguageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected static function getCodeFormComponent(): Component
->label(__('lunarpanel::language.form.code.label'))
->required()
->minLength(2)
->maxLength(2);
->maxLength(5);
}

protected static function getDefaultFormComponent(): Component
Expand Down

0 comments on commit 411dba1

Please sign in to comment.