You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2026-04-24 19:55:13 +02:00
11 lines
357 B
TypeScript
11 lines
357 B
TypeScript
import allLanguages from '../utils/markdown/codeBlockLanguages/allLanguages';
|
|
|
|
// Ensure languages we use are loaded. Without this, tests may randomly fail (LanguageDescriptions
|
|
// are loaded asynchronously, in the background).
|
|
const loadLanguages = async () => {
|
|
for (const lang of allLanguages) {
|
|
await lang.load();
|
|
}
|
|
};
|
|
export default loadLanguages;
|