mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2025-08-12 22:40:30 -04:00
fix: fetch languages and correctly get language code in txAvailableLanguages
This commit is contained in:
parent
7c23165767
commit
a3eed8987b
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ const txAvailableLanguages = async function (slug) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const languages = await project.fetch('languages');
|
const languages = await project.fetch('languages');
|
||||||
return languages.data.map(l => l.code);
|
await languages.fetch();
|
||||||
|
return languages.data.map(l => l.attributes.code);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue