Created
March 11, 2021 14:51
-
-
Save groovecoder/c7c4c75ced83dd95f0cb6b6be6455340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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