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 archetype table app column text #1553

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Nov 16, 2023

On the archetype table, applications column, update the translation key used to be plural aware via i18next:

  • When count == 1, use key archetypeApplicationCount
  • When count != 1, use key archetypeApplicationCount_plural

Net result is "1 application" and "3 applications" will be rendered. The "(s)" suffix is no longer required.

Note: The app is currently using i18next v19. In current versions, and therefore current docs, the count suffixes are different.

On the archetype table, applications column, update the translation
key used to be plural aware via i18next:
  - When `count == 1`, use key `archetypeApplicationCount`
  - When `count != 1`, use key `archetypeApplicationCount_plural`

Net result is "1 application" and "3 applications" will be rendered.
The "(s)" suffix is no longer required.

Note: The app is currently using `i18next` v19.  In current versions,
and therefore current docs, the count suffixes are different.

Signed-off-by: Scott J Dickerson <[email protected]>
@sjd78
Copy link
Member Author

sjd78 commented Nov 16, 2023

Screenshot:
screenshot-localhost_9000-2023 11 16-13_51_40

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (924ef4e) 40.49% compared to head (4bd4f28) 40.49%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1553   +/-   ##
=======================================
  Coverage   40.49%   40.49%           
=======================================
  Files         145      145           
  Lines        4638     4638           
  Branches     1087     1087           
=======================================
  Hits         1878     1878           
  Misses       2746     2746           
  Partials       14       14           
Flag Coverage Δ
client 40.49% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sjd78 sjd78 merged commit 4445104 into konveyor:main Nov 16, 2023
6 checks passed
@sjd78 sjd78 deleted the archetype-translation branch February 9, 2024 18:59
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.

2 participants