Wasn’t sure where to put this so it’s in the App Bridge section
I’m trying to localize my Shopify app and I came across this article.
I have the translations in place, however, I can’t find any code examples of how to properly implement this.
I see there’s an export for a useI18n
hook from @shopify/polaris/build/ts/src/utilities/i18n
, but that doesn’t seem to work as the app throws an error:
[plugin:vite:import-analysis] Failed to resolve import "@shopify/polaris/build/ts/src/utilities/i18n" from "web/routes/index.tsx". Does the file exist?
Also, I came across the @shopify/react-i18n
package, but it’s deprecated…