mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
11 lines
350 B
TypeScript
11 lines
350 B
TypeScript
import allLanguages from '../markdown/codeBlockLanguages/allLanguages';
|
|
|
|
// Ensure languages we use are loaded. Without this, tests may randomly fail (LanguageDescriptions
|
|
// are loaded asyncronously, in the background).
|
|
const loadLangauges = async () => {
|
|
for (const lang of allLanguages) {
|
|
await lang.load();
|
|
}
|
|
};
|
|
export default loadLangauges;
|