We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c20c2 commit c417ab1Copy full SHA for c417ab1
src/base/underscript/translation.js
@@ -8,7 +8,16 @@ const translations = (async () => {
8
cache: 'default',
9
},
10
);
11
- return response.json();
+ const text = await response.text();
12
+ return JSON.parse(text, function reviver(key, value) {
13
+ if (Array.isArray(value)) {
14
+ value.forEach((val, i) => {
15
+ this[`${key}.${i + 1}`] = val;
16
+ });
17
+ return undefined;
18
+ }
19
+ return value;
20
21
})();
22
23
eventManager.on('translation:loaded', async () => {
0 commit comments