refactor
This commit is contained in:
parent
77769983d5
commit
0345778aa1
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user