Calculates if one locale is compatible with another.
When doing the calculation the locale and language code is taken into account if possible.
| locale1 |
a BCP47 or POSIX locale string, or null |
| locale2 |
a BCP47 or POSIX locale string, or null |
|
true if the locale is compatible. |