lch/translate-bundle
lch/translate-bundle is a Laravel/PHP translation package for organizing multilingual content, managing locale files, and streamlining translation workflows. It helps keep strings consistent across languages and simplifies maintaining translations as your application grows.
The package appears to be a Laravel/PHP localization helper, with LangSwitchHelper exposing language-switch paths. The v0.3.0 change — using language codes as array keys — is small in surface area but material in contract: it changes the shape of a returned data structure consumed by Blade templates, controllers, APIs, or frontend JavaScript.
LangSwitchHelper usage. Code that iterates values with foreach may be unaffected; code using numeric indexes, array_values, JSON serialization, or array-order assumptions may break.array_values() or map to a DTO. Add tests for Blade rendering, JSON serialization, and language-code lookup.LangSwitchHelper references and expected array shapes. Then update tests to assert both keys and values. Then upgrade in a branch, validate language switcher UI/API output, and only then release. If frontend consumers expect arrays, normalize at the boundary before exposing data.foreach assumptions, JSON array-to-object changes, missing language-code keys, locale normalization mismatches, and stale cached config/views.How can I help you explore Laravel packages today?