fix(dynamic-loading): replace the $locale object in place

Replace the locale object in place as some filters keep a reference
to the inner object

Closes #1