refactor
This commit is contained in:
parent
77769983d5
commit
0345778aa1
@ -16,8 +16,7 @@ export class TranslationCollection {
|
|||||||
public addKeys(keys: string[]): TranslationCollection {
|
public addKeys(keys: string[]): TranslationCollection {
|
||||||
const values = keys.reduce(
|
const values = keys.reduce(
|
||||||
(results, key) => {
|
(results, key) => {
|
||||||
results[key] = '';
|
return { ...results, [key]: '' };
|
||||||
return results;
|
|
||||||
},
|
},
|
||||||
{} as TranslationType
|
{} as TranslationType
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user