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 locale string, or null |
locale2 |
a locale string, or null |
true if the locale is compatible. |