Added preliminary support for French, German and Spanish.
Added also the redefined \labelcref.
Dealt with #2. Added new options for setting the default behavior, while still allow the manually given options to work.
However, to ensure that it works, you may wish to consider changing the minimal requirement of the LaTeX2e kernel to 2022-06-01, since this new method of setting options was introduced at around that period.
Fixed #3.
Fixed #4.
Dealt also with #6.
However, with the edited \__UsedOn_cref and \__UsedOn_Cref, the error message OptionSpellingError is essentially useless since unrecognized arguments could be the preposition or declensions as with the usage of the package crefthe. I haven't yet come up with an idea on how to keep both the compatibility and the error message for possible misspelling.
Slightly improved the code indentation for the sake of readability.
Removed the loading of xparse.
Removed unnecessary braces after \NewDocumentCommand, \NewCommandCopy, etc.
Made use of the new hook system to replace the outdated \AtBeginDocument etc.
The documentation might needed to be updated accordingly. I have tried to updated some part of it, but there could still be something missing...
The code in #12 contains all these changes with many more improvements that should be able to solve #5 , #9 , #10 , #11 and #12 . However, there are so many new commands that the documentation might need an extensive revision. For this reason I haven't included that version within this pull request.
\labelcref
.xparse
.\NewDocumentCommand
,\NewCommandCopy
, etc.\AtBeginDocument
etc.The documentation might needed to be updated accordingly. I have tried to updated some part of it, but there could still be something missing...
The code in #12 contains all these changes with many more improvements that should be able to solve #5 , #9 , #10 , #11 and #12 . However, there are so many new commands that the documentation might need an extensive revision. For this reason I haven't included that version within this pull request.