Best practice for adding custom translations to app using Shopify Polaris?

Highlighted
Excursionist
24 1 3

Hi,

 

I see that the i18n property is set on AppProvider - I assume this translates all text on the react components in Polaris.

How should I go about making custom translations to the remainder of the app - is Polaris using a translations library that it would be best pratice to use for the custom translations, can I just add locations/en.json to the project and reference the translation somehow?
Or should the translations in Polaris and the remainder of the app be kept seperate?

 

Thanks,

-Louise

0 Likes