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.
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.
with*() methodsHow can I help you explore Laravel packages today?