-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Properly tags Plural-able strings for translation, and removes unnecessary i18n #9897
Properly tags Plural-able strings for translation, and removes unnecessary i18n #9897
Conversation
Build succeeded.
|
@AlexSCorey can you run the visual tests and functional tests? |
<span>{`: ${itemsUnableToDelete}`}</span> | ||
</> | ||
) : ( | ||
i18n._( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this just be t`` now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If usage of t
is not going to completely remove i18n._(
we will have 2 standards for translation syntax. It there any benefit in using one over the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In most cases we will be able to remove withI18n()
HOC and also i18n that is being injected into the components in favor of simply using t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
<Plural | ||
value={selected.length} | ||
one="This execution environment is currently being used by other resources. Are you sure you want to delete it?" | ||
other="Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other="Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?" | |
other="Deleting these execution environments could impact other resources that rely on them. Are you sure you want to delete anyway?" |
Build succeeded.
|
@AlexSCorey looks like this one is gonna need a rebase |
Build succeeded.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexSCorey I'm facing the same problem in different places (dev or production build) like:
Build succeeded.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not reproduce the problem anymore in a manual exploration testing, the e2e tests are 🟢
Build succeeded.
|
regate |
Build succeeded (gate pipeline).
|
SUMMARY
This resolves #9891.
It also begings the process of remove
i18n._(t string)
in places in favor of this syntaxISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION