Open chrisvire opened 4 months ago
@chrisvire I have the same need. Did you come up with a solution?
@hatton Here is our implementation of App Store and Google Play localized badges in the SvelteKit implementation of our PWA:
https://github.com/sillsdev/appbuilder-pwa/blob/main/src/routes/share/%2Bpage.svelte
For the Google Play Badges, we linked to the images based on the language name. For the App Store Badges, we copy the badges into the PWA based on what localizations are used by the PWA.
https://github.com/sillsdev/appbuilder-pwa/blob/main/convert/convertBadges.ts https://github.com/sillsdev/appbuilder-pwa/tree/main/convert/badges
How would I get a localized badge? I would like to display the localized version of the badge based on the language of the browser.