This commit is contained in:
Kim Biesbjerg 2019-09-19 15:07:06 +02:00
parent 77769983d5
commit 0345778aa1

View File

@ -16,8 +16,7 @@ export class TranslationCollection {
public addKeys(keys: string[]): TranslationCollection {
const values = keys.reduce(
(results, key) => {
results[key] = '';
return results;
return { ...results, [key]: '' };
},
{} as TranslationType
);