Skip to content

Commit

Permalink
fix staticpkg if availableLocales not defined in pxtarget
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl authored Sep 10, 2024
1 parent 09cbe2b commit a8e7ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4936,7 +4936,7 @@ export async function staticpkgAsync(parsed: commandParser.ParsedCommand) {
await internalGenDocsAsync(false, true);
if (locsSrc) {
const languages = pxt.appTarget?.appTheme?.availableLocales
.filter(langId => nodeutil.existsDirSync(path.join(locsSrc, langId)));
?.filter(langId => nodeutil.existsDirSync(path.join(locsSrc, langId))) ?? [];

await crowdin.buildAllTranslationsAsync(async (fileName: string) => {
const output: pxt.Map<pxt.Map<string>> = {};
Expand Down

0 comments on commit a8e7ca2

Please sign in to comment.