Bugfix: merging addLocale's locale with existing locale

e4404594f0aa2e4ca2679b84798d4e56770a36da introduced a bug by merging the incorrect variable in the addLocales function. This PR fixes the bug.