Don't modify original options arg

pull/21833/head
David Baker 2018-01-16 17:45:29 +00:00
parent 3cadb9b587
commit 0557737f8d
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ function safeCounterpartTranslate(text, options) {
if (translated === undefined && count !== undefined) {
// counterpart does not do fallback if no pluralisation exists
// in the preferred language, so do it here
options.locale = 'en';
translated = counterpart.translate(text, options);
translated = counterpart.translate(text, Object.assign({}, options, {locale: 'en'}));
}
return translated;
}