--- phase: 11-translation-infrastructure plan: 01 subsystem: i18n tags: [translate, locales, configuration, pl, de] dependency-graph: requires: [] provides: [pl-locale, de-locale, translate-config] affects: [11-02, 11-03] tech-stack: added: [] patterns: [locale-seeder, plugin-config-override] key-files: created: - plugins/golem15/translate/updates/v2.4.0/seed_quotify_locales.php - config/golem15/translate/config.php modified: - plugins/golem15/translate/updates/version.yaml decisions: - id: 11-01-01 decision: Use DB::table() for locale seeding rationale: Avoid model boot issues during migration metrics: duration: 2 min completed: 2026-01-16 --- # Phase 11 Plan 01: Locale Configuration Summary Polish and German locales configured with Translate plugin settings established. ## What Was Built ### Locale Seeder Migration (v2.4.0) Created idempotent seeder that adds Polish (pl) and German (de) locales to the translation system: ```php // plugins/golem15/translate/updates/v2.4.0/seed_quotify_locales.php protected $locales = [ ['code' => 'pl', 'name' => 'Polski', 'is_enabled' => true, 'sort_order' => 2], ['code' => 'de', 'name' => 'Deutsch', 'is_enabled' => true, 'sort_order' => 3], ]; ``` Uses `DB::table()` for direct insertion to avoid model boot issues during migration. ### Translate Plugin Configuration Created project-specific config override: ```php // config/golem15/translate/config.php return [ 'cacheTimeout' => 1440, // 24 hour cache 'prefixDefaultLocale' => false, // /about not /en/about 'disableLocalePrefixRoutes' => false, // URL routing enabled ]; ``` ## Locale Configuration | Code | Name | Default | Enabled | Sort | |------|---------|---------|---------|------| | en | English | Yes | Yes | 1 | | pl | Polski | No | Yes | 2 | | de | Deutsch | No | Yes | 3 | ## Commits | Hash | Type | Description | |---------|-------|------------------------------------------------| | 503a883 | feat | Add Polish and German locales for Quotify.pro | | 0578f3c | chore | Add Translate plugin configuration | ## Deviations from Plan None - plan executed exactly as written. ## Next Phase Readiness Phase 11 Plan 02 (Theme Translation) can proceed: - All 3 locales are enabled and available - Translate plugin configuration is in place - Theme scanning can be run to extract translatable strings