Files
langflow/scripts
RamGopalSrikar e04295f4d7 fix(i18n): address PR review — DRY key functions, locale allow-list, dead code, silent failures
- Extract safe_flow_key/normalize_component_key/content_hash/component_field_key into
  langflow/utils/i18n_keys.py so runtime translator and extract script share one
  source of truth (C1)
- Validate Accept-Language against supported locales in set_locale middleware;
  unknown values fall back to "en" to prevent cache pollution (C2)
- Delete dead `remaining = ...` block in check_backend_status.py that made a
  redundant network call and never used the result (I2)
- Log logger.warning instead of silently swallowing OSError/JSONDecodeError in
  _load_translations (I3)
- Rename test_strips_dedup_suffix → test_parentheses_in_name_become_underscores
  with corrected comment (I5)
- Remove redundant `import copy as _copy` inside translate_flow_notes (R2)
- Move translate_flow_notes/translate_starter_flows import to flows.py module top (R1)
- Add # Why: comments on max_size=16, uncompressed cache, and verify=False (R5/I8/M3)
- Wrap loadLanguage dynamic import in try/catch so unknown locales don't crash
  React with an unhandled rejection; add i18n.test.ts to cover the fallback
2026-04-20 14:51:14 -04:00
..