Skip to content

1.6.3

Latest

Choose a tag to compare

@kyrylo-mukha kyrylo-mukha released this 17 Jun 16:15

Updates:

  • LocaleKitLanguage.== is now strict full-code identity (en-GB != en-US, en != en-GB). Added isSameLanguageFamily(as:) for the short-code (family) match that == previously did implicitly. Two preferred entries that share a short code (e.g. region-decorated en-GB and en-UA over a bare en localization) no longer compare equal — fixing duplicate "selected" highlighting in a language picker.
  • selectedAppLocale is now deterministic: it resolves to exactly one language — an exact full-code match, otherwise the first same-family match (preferred entries first), otherwise English — and is always an element of sortedLanguages.
  • sortedLanguages and the system/default seed checks now use explicit family matching via isSameLanguageFamily(as:), preserving the existing list output.
  • Added Hashable conformance consistent with the strict ==, plus unit tests covering the resolution.