How to Loading Translations in Code
Locales are defined as a prop of
<RoqProvider>. If no locale is defined, then
en-US will be used as the default
<RoqProvider locale="de-DE"> <Component /> </RoqProvider>
<RoqProvider> fetches translations from the ROQ Platform every five minutes. The data is cached in the user's browser.