There is a issue and PR for a new "jena-langtag" module.
This module has no dependencies. It can be used in other systems without
any other Jena artifact (the same is true for jena-iri3986).
https://github.com/apache/jena/issues/3086
This would consolidate Jena's langtag handling and comply with RFC 5646
as accurately as possible. (The JDK Locale is close, but creates several
objects when the Jena requirement is more about fast checking. Jena
currently also has a regex based parser. The tests run all three
implementations to check alignment, with tests for known differences.)
The pull request
https://github.com/apache/jena/pull/3087
The PR adds the module and wires it into the build. It does not replace
existing code with calls the new module. That's for a second PR which
may or may not be ready for 5.4.0.
Andy