Open LMNTL opened 1 year ago
Thanks for catching, @LMNTL :+1: One note: we wouldn't want English (en)
in either the "Language name" or "Language code" boxes. The name should be English
and the code should be en
:
However, "Language name" should definitely be changed to allow spaces without the shenanigans you observe, for example:
Description
The "Add Language" input in the "Manage Translations" dialog doesn't play well with space characters.
Steps to Reproduce
Expected behavior
Language code box displays "english (en)".
Actual behavior
Language code box displays "english(en)" Typing a space at the end of the string does nothing. You can add spaces, but only from the middle of the string.
Additional details
We trim the string of spaces during
onChange()
, so that's probably why this is happening. Switching it to trim duringonSubmit()
would fix this.