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
mgr/dashboard: Add i18n validation script #25179
Conversation
5c83f8a
to
e6e302f
Compare
e6e302f
to
bb4329b
Compare
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.
Tested the script locally, worked for me :)
count=`git status | grep "messages.xlf" -c` | ||
|
||
if [ $count == 1 ]; then | ||
echo "Please run 'npm run i18n' and commit the modified 'messages.xlf' file." |
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.
At this point npm run i18n
has already been run and messages.xlf
is up to date, isn't it?
echo "Please run 'npm run i18n' and commit the modified 'messages.xlf' file." | |
echo "The translation template file 'messages.xlf' has been modified. Please commit the changes." |
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.
This script is more focused in being used in jenkins, so this message is going to be read after a failing ceph dashboard tests
. Then the developer will need to run the script locally.
bb4329b
to
4c23bab
Compare
I moved the validation to the existing |
4c23bab
to
613d6b0
Compare
@p-na I added a new validation to |
613d6b0
to
9aad8a3
Compare
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.
LGTM! Thank you.
9aad8a3
to
9d25d6a
Compare
retest this please |
9d25d6a
to
00133c2
Compare
This will check if there are new strings, validate them and ask the developer to commit and fix those. Signed-off-by: Tiago Melo <tmelo@suse.com>
00133c2
to
091bd4b
Compare
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.
Works for me :)
This will check if there are new strings and ask the developer to commit those.
Signed-off-by: Tiago Melo <tmelo@suse.com>