Skip to content

Customized translations

In some cases, the user may not be happy with the translations provided by ui-embedded and needs to update translations for a specific key to another value.

Example: They may want to change the en label Accession DOI (key accession.doi) to GLIS DOI.

The user should be able to update the genesysConfig: Config with customized translations:

// Embedded Genesys configuration
const genesysConfig = {
  apiUrl: 'https://api.sandbox.genesys-pgr.org', // Genesys API server
  ...
  translations: {
   en: {
    'accession.doi': 'GLIS DOI'
   },
   fr: {
    'accession.doi': 'DOI'
   }
  }
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information