Uses now proper toLocaleString function
This commit is contained in:
parent
66f33b368b
commit
df39a9a1ff
9 changed files with 22 additions and 22 deletions
|
@ -213,7 +213,7 @@ import { currentSettings as userSettings } from './settings/userSettings';
|
|||
export function translate(key) {
|
||||
let val = translateKey(key);
|
||||
for (let i = 1; i < arguments.length; i++) {
|
||||
val = replaceAll(val, '{' + (i - 1) + '}', arguments[i]);
|
||||
val = replaceAll(val, '{' + (i - 1) + '}', arguments[i].toLocaleString(currentCulture));
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue