Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created March 11, 2021 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groovecoder/c7c4c75ced83dd95f0cb6b6be6455340 to your computer and use it in GitHub Desktop.
Save groovecoder/c7c4c75ced83dd95f0cb6b6be6455340 to your computer and use it in GitHub Desktop.
const enLocaleArgs = {
hash: args.hash, data: {root: {req: {supportedLocales: ["en"]} } },
};
const bannerOpeningDivDataset = microSurveyResponseIds.reduce((datasetStr, id) => {
datasetStr + `data-${id}-translated="${getString(id, args)}" data-${id}-english="${getString(id, enLocaleArgs)}" `;
console.log(`datasetStr: ${datasetStr}`);
return datasetStr;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment