Project

General

Profile

Actions

dev #1600

open

Use Constants for Values Across the App & Update Localization Files

Added by Ayat Rahman about 1 year ago. Updated about 1 year ago.

Status:
In Progress
Priority:
High
Assignee:
Target version:
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:

  1. Constants Implementation:

    • Replace hardcoded values with well-defined constants throughout the app.
    • Define a centralized file/module for constants (e.g., constants.dart or similar depending on the platform).
    • Ensure constants are categorized appropriately (e.g., UI, API endpoints, limits, messages).
  2. 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:

  1. Audit the codebase for hardcoded values (strings, numbers, etc.).
  2. Replace hardcoded values with constants.
  3. Update the localization JSON files for all supported languages.
  4. Test the app thoroughly to ensure there are no broken functionalities.
  5. Document all constants and localization changes for future reference.
Actions #1

Updated by Ayat Rahman about 1 year ago

  • Status changed from Pending to In Progress
Actions

Also available in: Atom PDF