Core helper adoption + sitemap locale-prefix refactor.
Added
PhoenixKitEntities.UrlResolver.locale_prefix/2— resolves the constant locale path-prefix (/en, ``, …) for a(language, is_default)pair. Built for batch callers like sitemap generation: resolve once and prepend to many paths instead of re-reading the site-wide locale settings per URL.
Changed
UrlResolvernow delegates to the framework-sharedphoenix_kitcore helpers instead of maintaining parallel copies:build_path_with_language/3's prefix decision goes throughPhoenixKit.Modules.Sitemap.LocalePath.emit_prefix?/2, and the boot-safe primary-language check usesPhoenixKit.Modules.Languages.prefixless_primary_safe?/0(which also handles the mix-task context the previous local rescue missed). Behaviour-preserving.SitemapSourceresolves the locale prefix once per generation and threads it through the entry builders, replacing the per-URL(language, is_default)arguments. The previous code re-read the site-wide locale settings viaPhoenixKit.Cacheper generated URL (~4·N·L lookups returning the same constant); per-generation settings lookups now drop from O(N·L) to O(1).
Fixed
EntityData.public_path/3andpublic_alternates/3docstrings documented the pre-default_language_no_prefixbehaviour and shipped example URLs that were wrong under the default (setting OFF); prose and examples corrected.
Hex: https://hex.pm/packages/phoenix_kit_entities/0.2.3 · Docs: https://hexdocs.pm/phoenix_kit_entities/0.2.3