Actions
dev #1600
openUse Constants for Values Across the App & Update Localization Files
Start date:
01/08/2025
Due date:
01/09/2025 (about 15 months late)
% Done:
80%
Estimated time:
Spent time:
Description
Description:¶
To improve maintainability, scalability, and consistency of the codebase, implement the following changes:
-
Constants Implementation:
- Replace hardcoded values with well-defined constants throughout the app.
- Define a centralized file/module for constants (e.g.,
constants.dartor similar depending on the platform). - Ensure constants are categorized appropriately (e.g., UI, API endpoints, limits, messages).
-
Localization Updates:
- Ensure all strings in the app are moved to the respective localization JSON files.
- Remove any hardcoded user-facing strings and replace them with localized values.
- Validate that all supported languages in localization files are updated and consistent.
- Follow the existing structure of localization keys and values.
Expected Outcome:¶
- Improved readability and maintainability of the codebase.
- Easier scalability and reduced risk of introducing errors during future development.
- Consistent localization experience for users.
Tasks:¶
- Audit the codebase for hardcoded values (strings, numbers, etc.).
- Replace hardcoded values with constants.
- Update the localization JSON files for all supported languages.
- Test the app thoroughly to ensure there are no broken functionalities.
- Document all constants and localization changes for future reference.
Updated by Ayat Rahman about 1 year ago
- Status changed from Pending to In Progress
Actions