Weave Code
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

I18N Laravel Package

yiisoft/i18n

Yii i18n provides lightweight internationalization utilities for PHP: a BCP 47 Locale value object to parse and modify locale parts, build locale strings, and derive fallbacks, plus a stateful LocaleProvider service for managing the current and default locale.

View on GitHub
Deep Wiki
Context7

yiisoft/i18n is a lightweight PHP library for handling internationalization basics in Yii projects. It focuses on working with locales and managing the current application locale in a clean, type-safe way.

Use Locale to parse and manipulate BCP 47 locale tags (e.g., es-CL), generate normalized strings, and derive fallback locales. Use LocaleProvider as a stateful service to store and retrieve the active locale across your app.

  • Parse and format BCP 47 locale strings
  • Access locale parts: language, region, etc.
  • Create modified locales via immutable with*() methods
  • Compute fallback locales automatically
  • Manage current locale with LocaleProvider
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport