Closed sebilasse closed 7 years ago
solved by using
function objectPromiseAll(obj: PromiseObject, mapFn?: PromiseFn) {
const _keys = Object.keys(obj);
return Promise.all(_keys.map(k => mapFn ? mapFn(obj[k], k) : obj[k]))
.then(result => result.reduce(toObject(_keys), {}));
};
Question :
If I've got some strings (e.g. button labels or header description used everywhere) in
/common.ts
and some strings (e.g. for the FAQ page) in/faq.ts
Could I i18n() them mixed together at once ?