Athena — roomy-mobile/archive/changes/2025-12-28-fix-runtime-locale-switching/tasks/001-delete-stale-files.md


status: done

Task: Delete stale duplicate localization files

End Goal

Remove stale duplicate localization files that are not used and cause confusion about which files are canonical.

Currently

The project has duplicate localization infrastructure:

  • lib/l10n/l10n.dart - Stale duplicate (79 lines, English only)
  • lib/l10n/intl/messages_all.dart - Stale message loader
  • lib/l10n/intl/messages_en.dart - Stale English messages
  • lib/generated/l10n.dart - Canonical generated file (187KB, full translations)
  • lib/generated/intl/ - Canonical message files

Should

Only the canonical lib/generated/ files remain. The stale lib/l10n/l10n.dart and lib/l10n/intl/ directory are deleted.

Constraints

  • [ ] Verify no code imports from lib/l10n/l10n.dart or lib/l10n/intl/
  • [ ] Do not delete lib/l10n/globals/, lib/l10n/enums/, lib/l10n/services/, or ARB files

Acceptance Criteria

  • [ ] lib/l10n/l10n.dart is deleted
  • [ ] lib/l10n/intl/ directory is deleted
  • [ ] No import errors when running flutter analyze
  • [ ] App compiles and runs successfully

Implementation Checklist

  • [x] 1.1 Grep for imports of lib/l10n/l10n.dart
  • [x] 1.2 Grep for imports of lib/l10n/intl/
  • [x] 1.3 Delete lib/l10n/l10n.dart
  • [x] 1.4 Delete lib/l10n/intl/ directory
  • [x] 1.5 Run flutter analyze to verify no errors

Notes

The stale files were likely created before the project standardized on lib/generated/ for intl_utils output.

Reacties

Nog geen reacties