mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
parent
2c4db58013
commit
83baa946dd
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export function withoutUnicodeIsolation(s: string): string {
|
|||
|
||||
export async function setupI18n(args: { modules: ModuleName[] }): Promise<void> {
|
||||
const resources = await i18n.i18nResources(args);
|
||||
const json = JSON.parse(String.fromCharCode(...resources.json));
|
||||
const json = JSON.parse(new TextDecoder().decode(resources.json));
|
||||
|
||||
const newBundles: FluentBundle[] = [];
|
||||
for (const res in json.resources) {
|
||||
|
|
Loading…
Reference in a new issue