Skip to content

Commit e0382ef

Browse files
committed
Fix getSupportedLanguages returning langs without translations
Resolves #2852
1 parent 93e129b commit e0382ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/internationalization/internationalization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,6 @@ export class Internationalization {
306306
.map((x) => x.substring(0, x.indexOf(".")))
307307
.filter((x) => x !== "jp"),
308308
...this.allTranslations.keys(),
309-
]).sort();
309+
]).filter(lang => this.hasTranslations(lang)).sort();
310310
}
311311
}

0 commit comments

Comments
 (0)