{"record":{"id":"3b10b1da908ee49b","repo":"Leantime/leantime","slug":"found-d-unused-translations","errorCode":null,"errorMessage":"Found %d unused translations:","messagePattern":"Found (.+?) unused translations:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/Command/CheckTranslations.php","lineNumber":134,"sourceCode":"                    }\n                    $this->usedTranslations[$key] = true;\n                    break;\n                }\n            }\n        }\n    }\n\n    private function generateReport(): void\n    {\n        $unusedTranslations = array_diff_key($this->translations, $this->usedTranslations);\n\n        if (empty($unusedTranslations)) {\n            $this->info('No unused translations found.');\n\n            return;\n        }\n\n        $this->warn(sprintf('Found %d unused translations:', count($unusedTranslations)));\n\n        foreach ($unusedTranslations as $key => $value) {\n            $this->line(\"- $key\");\n        }\n\n        if ($exportFile = $this->option('export')) {\n            file_put_contents(\n                $exportFile,\n                json_encode($unusedTranslations, JSON_PRETTY_PRINT)\n            );\n            $this->info(\"Results exported to: $exportFile\");\n        }\n    }\n}\n","sourceCodeStart":116,"sourceCodeEnd":149,"githubUrl":"https://github.com/Leantime/leantime/blob/9a9f49f1008f4782b30f6723c54228f4f992e636/app/Command/CheckTranslations.php#L116-L149","documentation":"Error \"Found %d unused translations:\" thrown in Leantime/leantime.","triggerScenarios":"Thrown at app/Command/CheckTranslations.php:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9a9f49f1008f4782b30f6723c54228f4f992e636","analyzedAt":"2026-08-21T02:37:38.966Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}