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

added locale strings for DuckPlayer #1027

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

shakyShane
Copy link
Contributor

@shakyShane shakyShane commented Sep 9, 2024

https://app.asana.com/0/1201141132935289/1208258427490256/f

  • added locale strings for duckplayer
  • limit localization to none-desktop, this prevents Desktop from using them yet (untested)

What was added

  • I added strings in 24 languages for the DuckPlayer overlay + the DuckPlayer application
    • This was done in a way that prevents the existing DuckPlayer on Desktop from using them (because it's untested there)

What was changed

  • I moved the localization config back into the package.json script , because we now have more than 1 feature using the bundled strings

Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for release-notes-preview ready!

Name Link
🔨 Latest commit 97037a1
🔍 Latest deploy log https://app.netlify.com/sites/release-notes-preview/deploys/66deb2d0b22f2f00080fb8e9
😎 Deploy Preview https://deploy-preview-1027--release-notes-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@shakyShane
Copy link
Contributor Author

shakyShane commented Sep 9, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @shakyShane and the rest of your teammates on Graphite Graphite

@shakyShane shakyShane changed the title added locale strings for duckplayer added locale strings for DuckPlayer Sep 9, 2024
@shakyShane shakyShane marked this pull request as ready for review September 9, 2024 08:30
Copy link

github-actions bot commented Sep 9, 2024

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

Copy link

github-actions bot commented Sep 9, 2024

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

@@ -11,7 +11,7 @@
"copy-sjcl": "node scripts/generateSJCL.js",
"bundle-config": "node scripts/bundleConfig.mjs",
"build": "npm run build-locales && npm run build-types && npm run bundle-trackers && npm run build-firefox && npm run build-chrome && npm run build-apple && npm run build-android && npm run build-windows && npm run build-integration && npm run build-chrome-mv3",
"build-locales": "node scripts/buildLocales.js --dir src/locales/click-to-load --output build/locales/ctl-locales.js",
"build-locales": "node scripts/buildLocales.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this configuration into the script - so instead of the flags, we just list out all the projects requiring the bundled translations

Comment on lines +44 to +57
// This will be re-enabled in the mobile PR
// const strings = environment.locale === 'en'
// ? enStrings
// : await fetch(`./locales/${environment.locale}/duckplayer.json`)
// .then(resp => {
// if (!resp.ok) {
// throw new Error('did not give a result')
// }
// return resp.json()
// })
// .catch(e => {
// console.error('Could not load locale', environment.locale, e)
// return enStrings
// })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This gets re-enabled later when we support mobile - but by removing it here, we can merge these strings in without risking untested UI hitting prod

Copy link
Contributor

@mgurgel mgurgel left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@shakyShane shakyShane merged commit 29b9b45 into main Sep 9, 2024
10 checks passed
@shakyShane shakyShane deleted the shane/duckplayer-locales branch September 9, 2024 11:50
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