Skip to content

Conversation

@paulirish
Copy link
Member

Preparing for this to land:
https://chromium-review.googlesource.com/c/chromium/src/+/1784959

the only real change here is 51-56. the rest is refactors.

lh_locales_dir="lighthouse-core/lib/i18n/locales/"
fe_locales_dir="$frontend_dir/audits_worker/lighthouse/locales/"

cp -r "$lh_locales_dir" "$fe_locales_dir"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this copies the folder into the destination if the already exists.

image

just do the glob cp, like above? cp -r ./from/* ./to/. could even drop the -r.

fe_locales_dir="$frontend_dir/audits_worker/lighthouse/locales"

cp -r "$lh_locales_dir" "$fe_locales_dir"
find $lh_locales_dir -name '*.json' ! -name '*.ctc.json' -exec cp {} "$fe_locales_dir" \;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine as long as the folder is guaranteed to exist. might suggest a quick mkdir -p $fe_locales_dir to be explicit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, especially while it's not landed.

Copy link
Collaborator

@connorjclark connorjclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/me bashfully approves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants