Skip to content

keyset: add merge #350

@Yeti-or

Description

@Yeti-or

this is ugly right now =(

            const keyset = keysets.reduce((acc, k) => {
                const langs = k.langs;
                langs.forEach(lang => {
                    const langKeys = acc.getLangKeysForLang(lang);
                    const keys = langKeys ? acc.getKeysForLang(lang) : [];
                    const _keys = k.getKeysForLang(lang);
                    acc.addKeysForLang(lang, new LangKeys(lang, [...keys, ..._keys]));
                });
                return acc;
            }, new Keyset('', move));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions