mirror of
https://github.com/vector-im/element-web.git
synced 2026-02-26 10:01:09 +01:00
Don't modify original options arg
This commit is contained in:
parent
3cadb9b587
commit
0557737f8d
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user