Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Plural strings in DateUtil #508

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Conversation

PruthiviRaj27
Copy link
Contributor

@PruthiviRaj27 PruthiviRaj27 commented Apr 19, 2023

In order to simplify and generalize the plurals resource strings used for a time duration, the existing resource strings for minutes, hours, days, months, and years were refactored into a single plurals resource string with a placeholder for the time unit. The new resource string is named "time_duration" and includes two placeholders for the quantity and the time unit. This change simplifies the code and makes it easier to add new time units in the future.

@PruthiviRaj27 PruthiviRaj27 changed the title refactor refactor: Plural strings in DateUtil Apr 19, 2023
@PruthiviRaj27 PruthiviRaj27 merged commit d3dde9b into master Apr 19, 2023
@delete-merged-branch delete-merged-branch bot deleted the refactor_date_util branch April 19, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant