mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05: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');
|
||||
return languages.data.map(l => l.code);
|
||||
await languages.fetch();
|
||||
return languages.data.map(l => l.attributes.code);
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue