GetLanguage returns the language from config or falls back to auto-detection
()
| 267 | |
| 268 | // GetLanguage returns the language from config or falls back to auto-detection |
| 269 | func (e *StrategyEngine) GetLanguage() Language { |
| 270 | switch e.config.Language { |
| 271 | case "zh": |
| 272 | return LangChinese |
| 273 | case "en": |
| 274 | return LangEnglish |
| 275 | default: |
| 276 | // Fall back to auto-detection from prompt content for backward compatibility |
| 277 | return detectLanguage(e.config.PromptSections.RoleDefinition) |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | // GetConfig gets complete strategy configuration |
| 282 | func (e *StrategyEngine) GetConfig() *store.StrategyConfig { |
no test coverage detected