-
Notifications
You must be signed in to change notification settings - Fork 895
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
feat(ios): Add a script to push localization resource file to Crowdin #27230
base: master
Are you sure you want to change the base?
Conversation
cd $(dirname "$0") | ||
|
||
echo "Exporting strings from Xcode project..." | ||
(cd ../../ && xcodebuild -exportLocalizations SWIFT_EMIT_LOC_STRINGS=NO) >>output.log 2>&1 |
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 we only ever push up the en.xliff
why dont we just only export english here? (-exportLanguage en
)
-H "Authorization: Bearer ${TOKEN}" \ | ||
-H "Content-Type: application/json" | ||
) | ||
file_id=$(echo "$file_result" | jq '.data.[0].data.id') |
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 dont think jq
is a standard bash utility even on macOS, may want to add its requirement to the README
-H "Content-Type: application/json" | ||
) | ||
file_id=$(echo "$file_result" | jq '.data.[0].data.id') | ||
if [ $file_id == null ] |
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.
Is this checking for the string literal "null"?
Resolves brave/brave-browser#43271
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: