process(handlerInput) { const localizationClient = i18n.use(sprintf).init({ lng: handlerInput.requestEnvelope.request.locale, overloadTranslationOptionHandler: sprintf.overloadTranslationOptionHandler, resources: languageString, returnObjects: true }); const attributes = handlerInput.attributesManager.getRequestAttributes(); attributes.t = function (...args) { return localizationClient.t(...args); }; }
process(handlerInput) { const localizationClient = i18n.use(sprintf).init({ lng: handlerInput.requestEnvelope.request.locale, overloadTranslationOptionHandler: sprintf.overloadTranslationOptionHandler, resources: languageStrings, returnObjects: true, }); const attributes = handlerInput.attributesManager.getRequestAttributes(); attributes.t = function (...args) { return localizationClient.t(...args); }; }
process(handlerInput) { const localizationClient = i18n.use(sprintf).init({ lng: handlerInput.requestEnvelope.request.locale, overloadTranslationOptionHandler: sprintf.overloadTranslationOptionHandler, resources: languageStrings, returnObjects: true, }); const attributes = handlerInput.attributesManager.getRequestAttributes(); attributes.t = function (...args) { return localizationClient.t(...args); }; }