-
nixos-module: work around upstream language-list caching bug
released this
2026-09-26 15:17:22 -04:00 | 14 commits to master since this releaseMigration 2025_08_31_224356_additional_languages_af_ca_id.php runs
duringmigrate, before db:seed's LanguageSeeder has populated the
other 42 rows of the languages table, and does
Cache::forever('languages', Language::all()) - permanently caching
just the 3 languages (Afrikaans, Catalan, Indonesian) it sees at that
moment. StaticServiceProvider checks this cache key before ever
querying the DB again, so every fresh install's language dropdown
(e.g. the "Welcome to Invoice Ninja" company setup wizard) was stuck
showing only those 3 entries, in their own native-language spelling
(ctrans() translates each name using the active locale).Adds an unconditional
invoiceninja-manage cache:forget languagesto
invoiceninja-data-setup.service, and a regression test asserting
/api/v1/statics returns more than 40 languages. Verified directly:
before the fix, a fresh account's statics call returned exactly 3
languages; after, it returns all 45.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Downloads