mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
Merge pull request #178 from corihudson/fix-available-languages
Fix txAvailableLanguages
This commit is contained in:
commit
215caa4613
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