Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Locale Collection

Laravel Locale Collection Laravel Package

codedor/laravel-locale-collection

A Laravel package that provides a ready-made collection of locales and language data, making it easy to list, filter, and look up locale names and codes in your application.

View on GitHub
Deep Wiki
Context7

Locale Collection for Laravel

Frequently asked questions about Laravel Locale Collection
What is codedor/laravel-locale-collection used for?
It provides a ready-made collection of locales and language data for Laravel applications. Developers use it to list, filter, and look up locale names and codes instead of hardcoding locale arrays. The TPM assessment describes it as a locale-source standardization component, not a full i18n platform.
How do I install codedor/laravel-locale-collection in Laravel?
Install it with Composer using composer require codedor/laravel-locale-collection. It is a Laravel package, so integration should follow normal package conventions; check the repository README for any service provider registration or config publishing steps. Test on a branch before replacing existing locale configuration.
Does codedor/laravel-locale-collection support Laravel 13 and PHP 8.5?
The v2.1.0 release notes explicitly add PHP 8.5 and Laravel 13 support. You should still verify the package's composer.json constraints against your application's PHP and Laravel matrix. The release is described as maintenance and compatibility focused with no noted breaking changes.
Does this package handle translations or only locale data?
Based on the available overview, the package supplies locale and language data rather than translation resolution. The TPM assessment flags this as a key question to confirm: whether it is metadata only or also affects translation resolution. Review the package API and docs before relying on it for fallback or translation behavior.
How do I get a list of locale names and codes with this package?
The package is intended to make listing, filtering, and looking up locale names and codes easy. The exact collection API should be validated against the package documentation, since no API reference was included in the supplied context. Start by mapping one hardcoded locale list to the package collection.
Can I filter or search locales using codedor/laravel-locale-collection?
Yes, the package description says it supports listing, filtering, and looking up locale names and codes. The precise filtering methods and return types are not documented in the supplied context. Confirm the API shape in the README before building UI around it.
How are locale codes normalized in codedor/laravel-locale-collection?
The available context does not specify how locale codes are normalized. The TPM assessment lists normalization rules as a key integration question. Check the package docs or source and add tests for codes such as en, en_US, and en-US before using them across UI, validation, and storage.
Is it safe to upgrade from v2.0.0 to v2.1.0?
v2.1.0 appears to be a maintenance and compatibility release with no breaking changes noted. That suggests semver compatibility with v2.0.0, but the TPM assessment says to confirm it. Run your locale-related tests after upgrading, especially if you rely on fallback or validation behavior.
Does this package work for locale validation and fallback handling?
The package may fit locale selectors, validation, and fallback handling, but the supplied context does not confirm built-in validation or fallback helpers. Position it as a locale data source and keep validation and fallback logic explicit in your application unless the docs show otherwise. Test those paths carefully during adoption.
What are the maintenance and alternatives concerns for codedor/laravel-locale-collection?
Maintenance risk is mostly package-level: community support, locale data accuracy, and compatibility during Laravel and PHP upgrades. v2.1.0 is low-risk from a release standpoint because it is mostly compatibility and CI hygiene. Before adopting, review maintainer activity, license, security policy, and whether a maintained locale data source fits your supported locale policy.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections